summaryrefslogtreecommitdiffstats
path: root/src/usr/cxxtest
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/cxxtest')
-rw-r--r--src/usr/cxxtest/cxxtestexec.C9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/usr/cxxtest/cxxtestexec.C b/src/usr/cxxtest/cxxtestexec.C
index 8d0957ff3..d78b99205 100644
--- a/src/usr/cxxtest/cxxtestexec.C
+++ b/src/usr/cxxtest/cxxtestexec.C
@@ -118,7 +118,14 @@ void _start(void *io_pArgs)
t != tasks.end();
++t)
{
- task_wait_tid(*t, NULL, NULL);
+ int status = 0;
+ task_wait_tid(*t, &status, NULL);
+
+ if (status != TASK_STATUS_EXITED_CLEAN)
+ {
+ TRACFCOMP( g_trac_cxxtest, "Task %d crashed.", *t );
+ __sync_add_and_fetch(&CxxTest::g_FailedTests, 1);
+ }
}
__sync_add_and_fetch(&CxxTest::g_ModulesCompleted, 1);
OpenPOWER on IntegriCloud