Index: native_client_sdk/src/tests/nacl_io_test/main.cc |
diff --git a/native_client_sdk/src/tests/nacl_io_test/main.cc b/native_client_sdk/src/tests/nacl_io_test/main.cc |
index 772267070073c522b0dd51e45c18264d228a534d..ef7b09433a986c2f103014df6a6d9554903e9fbd 100644 |
--- a/native_client_sdk/src/tests/nacl_io_test/main.cc |
+++ b/native_client_sdk/src/tests/nacl_io_test/main.cc |
@@ -50,25 +50,13 @@ class GTestEventListener : public ::testing::EmptyTestEventListener { |
<< "," << (test_info.result()->Failed() ? "failed" : "ok"); |
pp::Instance(PSGetInstanceId()).PostMessage(msg.str()); |
} |
- |
- virtual void OnTestProgramEnd(const ::testing::UnitTest&) { |
- pp::Instance(PSGetInstanceId()).PostMessage("testend"); |
- } |
}; |
int example_main(int argc, char* argv[]) { |
::testing::InitGoogleTest(&argc, argv); |
::testing::UnitTest::GetInstance()->listeners() |
.Append(new GTestEventListener()); |
- int result = RUN_ALL_TESTS(); |
- |
- // When running as an automated test, we don't want the final message |
- // ("testend") to be dropped, so don't exit. The web page will kill the |
- // plugin if it needs to. |
- while(1); |
- |
- // Silence the warning. |
- return result; |
+ return RUN_ALL_TESTS(); |
} |
// Register the function to call once the Instance Object is initialized. |