summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/test.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-17 21:21:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-07-23 09:27:47 +0200
commit77814040262f2ae1a479f94d962139d68052b743 (patch)
tree24775331ece5294692e2b54ae5ed3f3bb5f2b366 /cpukit/include/rtems/test.h
parentlibtest: Split POSIX Keys support (diff)
downloadrtems-77814040262f2ae1a479f94d962139d68052b743.tar.bz2
libtest: Add T_stop()
Update #3199.
Diffstat (limited to 'cpukit/include/rtems/test.h')
-rw-r--r--cpukit/include/rtems/test.h8
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.
*