summaryrefslogtreecommitdiffstats
path: root/src/usr/cxxtest
diff options
context:
space:
mode:
authorMark Wenning <wenning@us.ibm.com>2011-09-22 17:42:01 -0500
committerMark W. Wenning <wenning@us.ibm.com>2011-10-20 18:07:04 -0500
commit591bf9abfe58c662a8e81820fdc96b90b85a9b55 (patch)
treee603935f90a1c49d5d8767d535168cd71da56b16 /src/usr/cxxtest
parent0eb945c47156b32f4028867969b153652baa3ad3 (diff)
downloadtalos-hostboot-591bf9abfe58c662a8e81820fdc96b90b85a9b55.tar.gz
talos-hostboot-591bf9abfe58c662a8e81820fdc96b90b85a9b55.zip
RTC3872: Hardware Availability Service: Add HWAS as first ISTEP
- first commit - change isteplist to call hwas - comment out test isteps - modify xml to add HWAS_STATE attribute - add macros to taskargs - remove debug trace from taskargs - add call to init_fsi - post-review - merge xml files - forgot one printkd Change-Id: Iab3b1f85c401f9a176ed84ddb91263caf25a3d56 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/430 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/cxxtest')
-rw-r--r--src/usr/cxxtest/cxxtestexec.C26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/usr/cxxtest/cxxtestexec.C b/src/usr/cxxtest/cxxtestexec.C
index 58540c3ff..31c58824c 100644
--- a/src/usr/cxxtest/cxxtestexec.C
+++ b/src/usr/cxxtest/cxxtestexec.C
@@ -67,8 +67,8 @@ void _start(void *io_pArgs)
errlHndl_t l_errl = NULL;
std::vector<const char *> module_list;
tid_t tidrc = 0;
- TaskArgs::TaskArgs *pTaskArgs =
- reinterpret_cast<TaskArgs::TaskArgs *>(io_pArgs);
+ TASKARGS_INIT_TASKARGS( io_pArgs );
+
// output a blank line so that it's easier to find the beginning of
// CxxTest
@@ -121,30 +121,24 @@ void _start(void *io_pArgs)
*i, tidrc );
}
- TRACDCOMP( g_trac_cxxtest, "Waiting for all tasks to finish....");
+ TRACFCOMP( g_trac_cxxtest, "Waiting for all tasks to finish....");
// wait for all the launched tasks to finish
barrier_wait( &CxxTest::g_CxxTestBarrier );
__sync_add_and_fetch(&CxxTest::g_ModulesCompleted, 1);
- TRACDCOMP( g_trac_cxxtest, " ModulesCompleted=%d",
+ TRACFCOMP( g_trac_cxxtest, " ModulesCompleted=%d",
CxxTest::g_ModulesCompleted );
- TRACDCOMP( g_trac_cxxtest, EXIT_MRK "Finished CxxTestExec: ");
- TRACDCOMP( g_trac_cxxtest, " total tests: %d",
+ TRACFCOMP( g_trac_cxxtest, EXIT_MRK "Finished CxxTestExec: ");
+ TRACFCOMP( g_trac_cxxtest, " total tests: %d",
CxxTest::g_TotalTests );
- TRACDCOMP( g_trac_cxxtest, " failed tests: %d",
+ TRACFCOMP( g_trac_cxxtest, " failed tests: %d",
CxxTest::g_FailedTests );
- TRACDCOMP( g_trac_cxxtest, " warnings: %d",
+ TRACFCOMP( g_trac_cxxtest, " warnings: %d",
CxxTest::g_Warnings );
- TRACDCOMP( g_trac_cxxtest, " trace calls: %d",
+ TRACFCOMP( g_trac_cxxtest, " trace calls: %d",
CxxTest::g_TraceCalls );
- // wait for TaskArgs barrier
- if ( pTaskArgs )
- {
- pTaskArgs->waitChildSync();
- }
-
- task_end();
+ TASKARGS_WAIT_AND_ENDTASK();
}
OpenPOWER on IntegriCloud