summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/include/rtems/test.h')
-rw-r--r--cpukit/include/rtems/test.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/include/rtems/test.h b/cpukit/include/rtems/test.h
index d14bb9fe2d..06c5772296 100644
--- a/cpukit/include/rtems/test.h
+++ b/cpukit/include/rtems/test.h
@@ -2294,6 +2294,9 @@ void T_pop_fixture(void);
T_NO_RETURN void T_stop(void);
+#define T_unreachable() \
+ do { T_true(false, "Unreachable"); T_stop(); } while (0)
+
/**
* @brief Gets the scope for nested fixtures.
*