[rtems commit] libtest: Add quiet assert NULL pointer checks

Sebastian Huber sebh at rtems.org
Thu Jul 23 08:57:41 UTC 2020


Module:    rtems
Branch:    master
Commit:    dddc9a58189758395e7354223ff421b4c7532538
Changeset: http://git.rtems.org/rtems/commit/?id=dddc9a58189758395e7354223ff421b4c7532538

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jul 20 07:28:07 2020 +0200

libtest: Add quiet assert NULL pointer checks

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 06c5772..5d4c676 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)



More information about the vc mailing list