summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-22 08:31:15 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-09-03 08:10:28 +0200
commit440944f638769b973ca021609d60873885711b27 (patch)
tree39a8c4be3b519569be6e2e09385c68c323a68cb1
parentb3b849d32699f96764f7e21ab4e66c0e4ce7ec9e (diff)
FIXME run only specified test case
-rw-r--r--testsuites/validation/ts-default.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/testsuites/validation/ts-default.h b/testsuites/validation/ts-default.h
index 3fe5b915de..b12d66b5b9 100644
--- a/testsuites/validation/ts-default.h
+++ b/testsuites/validation/ts-default.h
@@ -99,7 +99,7 @@ static union {
static void Init( rtems_task_argument arg )
{
- int exit_code;
+ rtems_fatal_code exit_code;
(void) arg;
@@ -112,13 +112,17 @@ static void Init( rtems_task_argument arg )
rtems_test_begin( rtems_test_name, TEST_STATE );
T_register();
- exit_code = T_main( &test_config );
+ T_run_initialize( &test_config );
+ T_run_by_name("CValC");
- if ( exit_code == 0 ) {
+ if ( T_run_finalize() ) {
rtems_test_end( rtems_test_name );
+ exit_code = 0;
+ } else {
+ exit_code = 1;
}
- rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, (uint32_t) exit_code );
+ rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, exit_code );
}
static void *task_stack_allocate( size_t size )