summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuites/validation/ts-default.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuites/validation/ts-default.h b/testsuites/validation/ts-default.h
index 227dbb679e..089fe0c0ad 100644
--- a/testsuites/validation/ts-default.h
+++ b/testsuites/validation/ts-default.h
@@ -96,6 +96,8 @@ static union {
static void Init( rtems_task_argument arg )
{
+ int exit_code;
+
(void) arg;
rtems_chain_initialize(
@@ -107,14 +109,13 @@ static void Init( rtems_task_argument arg )
rtems_test_begin( rtems_test_name, TEST_STATE );
T_register();
- T_run_initialize( &test_config );
- T_run_by_name( "RtemsSemReqObtain" );
+ exit_code = T_main( &test_config );
- if ( T_run_finalize() ) {
+ if ( exit_code == 0 ) {
rtems_test_end( rtems_test_name );
}
- rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, 0 );
+ rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, (uint32_t) exit_code );
}
static void *task_stack_allocate( size_t size )