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. |