summaryrefslogtreecommitdiffstats
path: root/src/usr/cxxtest
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2012-03-14 17:33:27 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-03-15 10:01:48 -0500
commit6c7dcf9fd4b30e4257c579b21ac31a43ac854021 (patch)
tree93284de97be793814bceacdbc42b8020968b66e0 /src/usr/cxxtest
parent52bf33a35217406cf5118802e1da0f831ea95e15 (diff)
downloadblackbird-hostboot-6c7dcf9fd4b30e4257c579b21ac31a43ac854021.tar.gz
blackbird-hostboot-6c7dcf9fd4b30e4257c579b21ac31a43ac854021.zip
Ensure crashing testcases are flagged as failure.
Change-Id: Ifb2d924986255a9a840fd7ce58cde0b139eff741 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/759 Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
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