Index: test/win/win_multiprocess.cc |
diff --git a/test/win/win_multiprocess.cc b/test/win/win_multiprocess.cc |
index 1eece13f1cd825bf59907dd1001368956ec93242..cdcec0af035da06dbe5c9685a48dbff30aa9360e 100644 |
--- a/test/win/win_multiprocess.cc |
+++ b/test/win/win_multiprocess.cc |
@@ -100,7 +100,10 @@ void WinMultiprocess::Run() { |
// Invoke the child side of the test. |
WinMultiprocessChild(); |
- exit(0); |
+ |
+ if (testing::Test::HasFailure()) |
+ exit(255); |
+ exit(EXIT_SUCCESS); |
} else { |
// If we're in the parent, make pipes for child-to-parent and |
// parent-to-child communication. Mark them as inheritable via the |