Pass *testing.T to ModuleForTests
ModuleForTests requires *testing.T now so that it can gracefully
fail with t.Fatalf instead of panicking.
Test: all soong tests pass
Change-Id: Ia55e8be7bb6acc3d179fa0eaa3c668a2d81b6f06
diff --git a/build/soong/selinux_test.go b/build/soong/selinux_test.go
index dd980a5..beecf9f 100644
--- a/build/soong/selinux_test.go
+++ b/build/soong/selinux_test.go
@@ -72,7 +72,7 @@
`),
).RunTest(t).TestContext
- collectorModule := ctx.ModuleForTests("se_flags_collector", "").Module()
+ collectorModule := ctx.ModuleForTests(t, "se_flags_collector", "").Module()
collectorData, ok := android.OtherModuleProvider(ctx.OtherModuleProviderAdaptor(), collectorModule, buildFlagsProviderKey)
if !ok {
t.Errorf("se_flags_collector must provide buildFlags")