diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2000-02-01 18:42:50 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2000-02-01 18:42:50 +0000 |
commit | 2c6f00fbcd56a767383fb821f44c43382c83b424 (patch) | |
tree | 0aecf69d5d6a2f4332c84a29c22466950fc31991 /tests/Pipe_Test.cpp | |
parent | 66475aceb465caa4128ca02025dcccab3a0e367c (diff) | |
download | ATCD-2c6f00fbcd56a767383fb821f44c43382c83b424.tar.gz |
ChangeLog:Tue Feb 1 09:40:50 2000 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'tests/Pipe_Test.cpp')
-rw-r--r-- | tests/Pipe_Test.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/Pipe_Test.cpp b/tests/Pipe_Test.cpp index 8d4f1d9717e..c0ead1a0ce5 100644 --- a/tests/Pipe_Test.cpp +++ b/tests/Pipe_Test.cpp @@ -119,6 +119,8 @@ main (int argc, ASYS_TCHAR *argv[]) else options.command_line (ACE_TEXT ("Pipe_Test") ACE_PLATFORM_EXE_SUFFIX ACE_TEXT (" -c")); + ACE_exitcode status = 0; + for (int i = 0; i < ::iterations; i++) { ACE_Process server; @@ -129,7 +131,23 @@ main (int argc, ASYS_TCHAR *argv[]) server.getpid ())); // Wait for the process we just created to exit. - server.wait (); + server.wait (&status); + + // Check if child exited without error. + if (WIFEXITED (status) != 0 + && WEXITSTATUS (status) != 0) + { + ACE_DEBUG ((LM_DEBUG, + "Child of server %d finished with error " + "exit status %d\n", + server.getpid (), + WEXITSTATUS (status))); + + ACE_END_TEST; + + exit (WEXITSTATUS (status)); + } + ACE_DEBUG ((LM_DEBUG, "Server %d finished\n", server.getpid ())); } ACE_END_TEST; |