Chromium Code Reviews| Index: native_client_sdk/src/tests/sdk_util_test/main.cc |
| diff --git a/native_client_sdk/src/tests/sdk_util_test/main.cc b/native_client_sdk/src/tests/sdk_util_test/main.cc |
| index 7dedcc62ae555741433317a776b7af7681c2c5a9..79e091836e8d375fb44171cc5e684fe2eea0ed03 100644 |
| --- a/native_client_sdk/src/tests/sdk_util_test/main.cc |
| +++ b/native_client_sdk/src/tests/sdk_util_test/main.cc |
| @@ -50,13 +50,19 @@ 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()); |
| - return RUN_ALL_TESTS(); |
| + int result = RUN_ALL_TESTS(); |
| + while(1); |
| + return result; |
|
Sam Clegg
2013/11/06 00:07:46
Really?
|
| } |
| // Register the function to call once the Instance Object is initialized. |