Index: mojo/edk/test/run_all_unittests.cc |
diff --git a/mojo/edk/test/run_all_unittests.cc b/mojo/edk/test/run_all_unittests.cc |
index 0b0663b26f5f8825da5dc5959a79b55a31058e4f..cd6b241d605b05c6b8982303a3fa8e8a51ddaff3 100644 |
--- a/mojo/edk/test/run_all_unittests.cc |
+++ b/mojo/edk/test/run_all_unittests.cc |
@@ -26,6 +26,10 @@ |
testing::GTEST_FLAG(death_test_style) = "threadsafe"; |
#endif |
#if defined(OS_ANDROID) |
+ // Enable the alternate test child implementation. This is needed because Mojo |
+ // tests need to spawn test children after initialising the Mojo system. |
+ base::InitAndroidMultiProcessTestHelper(main); |
+ |
// On android, the test framework has a signal handler that will print a |
// [ CRASH ] line when the application crashes. This breaks death test has the |
// test runner will consider the death of the child process a test failure. |