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

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

Issue 23531034: [NaCl SDK] Don't exit from nacl_io_test before posting message to JS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months 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
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_test/example.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9df6d4bde761ad0e55792be41cc32cab29757453..772267070073c522b0dd51e45c18264d228a534d 100644
--- a/native_client_sdk/src/tests/nacl_io_test/main.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/main.cc
@@ -60,7 +60,15 @@ 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();
+
+ // 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;
}
// Register the function to call once the Instance Object is initialized.
« no previous file with comments | « native_client_sdk/src/tests/nacl_io_test/example.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698