Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1271)

Unified Diff: native_client_sdk/src/tests/sdk_util_test/main.cc

Issue 61213002: [NaCl SDK] Run nacl_io_socket_test on the bots. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove removeModule(), it causes a race condition for fast tests Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « native_client_sdk/src/tests/sdk_util_test/example.js ('k') | native_client_sdk/src/tests/sdk_util_test/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698