[PATCH 13/33] libtest: Add T_unreachable()

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jul 21 15:04:30 UTC 2020


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.
  *
-- 
2.26.2



More information about the devel mailing list