summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-09 16:02:26 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-12 08:07:17 +0200
commitca05aa510488ed3c65704738256b9d16fded3a3a (patch)
tree00093633b4782266d1223738464188a17c5555a8
parentf804d00c9b1867b6769a094e783468d504500073 (diff)
Revert "FIXME run only specified test case"
This reverts commit 780e7d67fd09c13d3be96045d9f970ca116f6713.
-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 )