From 467ef5b4313af7451c1b959159e86d6f94af788f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 17 Jul 2020 21:24:56 +0200 Subject: libtest: Add T_unreachable() Update #3199. --- cpukit/include/rtems/test.h | 3 +++ 1 file changed, 3 insertions(+) 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. * -- cgit v1.2.3