[PATCH 14/33] libtest: Add quiet assert NULL pointer checks

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


Update #3199.
---
 cpukit/include/rtems/test.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cpukit/include/rtems/test.h b/cpukit/include/rtems/test.h
index 06c5772296..5d4c676d16 100644
--- a/cpukit/include/rtems/test.h
+++ b/cpukit/include/rtems/test.h
@@ -761,6 +761,8 @@ T_verbosity T_set_verbosity(T_verbosity);
 #define T_null(a) T_flags_null(a, 0, #a)
 #define T_assert_null(a) T_flags_null(a, T_CHECK_STOP, #a)
 #define T_quiet_null(a) T_flags_null(a, T_CHECK_QUIET, #a)
+#define T_quiet_assert_null(a) \
+    T_flags_null(a, T_CHECK_QUIET | T_CHECK_STOP, #a)
 #define T_step_null(s, a) T_flags_null(a, T_CHECK_STEP(s), #a)
 #define T_step_assert_null(s, a) \
     T_flags_null(a, T_CHECK_STEP(s) | T_CHECK_STOP, #a)
@@ -768,6 +770,8 @@ T_verbosity T_set_verbosity(T_verbosity);
 #define T_not_null(a) T_flags_not_null(a, 0, #a)
 #define T_assert_not_null(a) T_flags_not_null(a, T_CHECK_STOP, #a)
 #define T_quiet_not_null(a) T_flags_not_null(a, T_CHECK_QUIET, #a)
+#define T_quiet_assert_not_null(a) \
+    T_flags_not_null(a, T_CHECK_QUIET | T_CHECK_STOP, #a)
 #define T_step_not_null(s, a) T_flags_not_null(a, T_CHECK_STEP(s), #a)
 #define T_step_assert_not_null(s, a) \
     T_flags_not_null(a, T_CHECK_STEP(s) | T_CHECK_STOP, #a)
-- 
2.26.2



More information about the devel mailing list