diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-17 21:21:16 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-07-23 09:27:47 +0200 |
commit | 77814040262f2ae1a479f94d962139d68052b743 (patch) | |
tree | 24775331ece5294692e2b54ae5ed3f3bb5f2b366 /cpukit/include/rtems/test.h | |
parent | libtest: Split POSIX Keys support (diff) | |
download | rtems-77814040262f2ae1a479f94d962139d68052b743.tar.bz2 |
libtest: Add T_stop()
Update #3199.
Diffstat (limited to 'cpukit/include/rtems/test.h')
-rw-r--r-- | cpukit/include/rtems/test.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpukit/include/rtems/test.h b/cpukit/include/rtems/test.h index 09afc29593..8af810def7 100644 --- a/cpukit/include/rtems/test.h +++ b/cpukit/include/rtems/test.h @@ -95,6 +95,12 @@ typedef struct T_fixture_node { * @{ */ +#ifdef __cplusplus +#define T_NO_RETURN [[ noreturn ]] +#else +#define T_NO_RETURN _Noreturn +#endif + typedef struct T_case_context { const char *name; void (*body)(void); @@ -2243,6 +2249,8 @@ void *T_push_fixture(T_fixture_node *, const T_fixture *); void T_pop_fixture(void); +T_NO_RETURN void T_stop(void); + /** * @brief Gets the scope for nested fixtures. * |