[rtems commit] sptests: Avoid fatal error to end a test
Sebastian Huber
sebh at rtems.org
Wed Oct 26 09:35:57 UTC 2022
Module: rtems
Branch: master
Commit: f6bcf1636b2b4f298594036f9b3ed4f9923747ea
Changeset: http://git.rtems.org/rtems/commit/?id=f6bcf1636b2b4f298594036f9b3ed4f9923747ea
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Oct 25 07:59:15 2022 +0200
sptests: Avoid fatal error to end a test
End the test with a normal exit instead of
INTERNAL_ERROR_THREAD_EXITTED.
---
testsuites/sptests/spclock_err01/init.c | 1 +
testsuites/sptests/spclock_err02/init.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/testsuites/sptests/spclock_err01/init.c b/testsuites/sptests/spclock_err01/init.c
index 889f03e8ae..b6d5f196af 100644
--- a/testsuites/sptests/spclock_err01/init.c
+++ b/testsuites/sptests/spclock_err01/init.c
@@ -226,4 +226,5 @@ rtems_task Init(
print_time( "TA1 - current time - ", &time, "\n" );
TEST_END();
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/sptests/spclock_err02/init.c b/testsuites/sptests/spclock_err02/init.c
index 11061ccc58..91519fbf43 100644
--- a/testsuites/sptests/spclock_err02/init.c
+++ b/testsuites/sptests/spclock_err02/init.c
@@ -136,6 +136,7 @@ rtems_task Init(
print_time( "TA1 - rtems_clock_get_tod - ", &time, " - RTEMS_SUCCESSFUL\n" );
TEST_END();
+ rtems_test_exit( 0 );
}
#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
More information about the vc
mailing list