Blame SOURCES/0232-testsuite-Add-macros-for-value-comparison.patch

4b6aa8
From e9a19a54e57766895767798da15da953078390a8 Mon Sep 17 00:00:00 2001
4b6aa8
From: Martin Kutlak <mkutlak@redhat.com>
4b6aa8
Date: Thu, 27 Sep 2018 13:49:54 +0200
4b6aa8
Subject: [PATCH] testsuite: Add macros for value comparison
4b6aa8
4b6aa8
Signed-off-by: Martin Kutlak <mkutlak@redhat.com>
4b6aa8
---
4b6aa8
 tests/helpers/testsuite.h | 13 +++++++++++++
4b6aa8
 1 file changed, 13 insertions(+)
4b6aa8
4b6aa8
diff --git a/tests/helpers/testsuite.h b/tests/helpers/testsuite.h
4b6aa8
index 28bfd3eb..bc7abf1d 100644
4b6aa8
--- a/tests/helpers/testsuite.h
4b6aa8
+++ b/tests/helpers/testsuite.h
4b6aa8
@@ -168,9 +168,22 @@ FILE *g_testsuite_output_stream = 0;
4b6aa8
 #define TS_ASSERT_SIGNED_EQ(actual, expected) \
4b6aa8
     TS_ASSERT_SIGNED_OP_MESSAGE(actual, ==, expected, NULL)
4b6aa8
 
4b6aa8
+
4b6aa8
+#define TS_ASSERT_SIGNED_NEQ(actual, expected) \
4b6aa8
+    TS_ASSERT_SIGNED_OP_MESSAGE(actual, !=, expected, NULL)
4b6aa8
+
4b6aa8
 #define TS_ASSERT_SIGNED_GE(actual, expected) \
4b6aa8
     TS_ASSERT_SIGNED_OP_MESSAGE(actual, >=, expected, NULL)
4b6aa8
 
4b6aa8
+#define TS_ASSERT_SIGNED_GT(actual, expected) \
4b6aa8
+    TS_ASSERT_SIGNED_OP_MESSAGE(actual, >, expected, NULL)
4b6aa8
+
4b6aa8
+#define TS_ASSERT_SIGNED_LE(actual, expected) \
4b6aa8
+    TS_ASSERT_SIGNED_OP_MESSAGE(actual, <=, expected, NULL)
4b6aa8
+
4b6aa8
+#define TS_ASSERT_SIGNED_LT(actual, expected) \
4b6aa8
+    TS_ASSERT_SIGNED_OP_MESSAGE(actual, <, expected, NULL)
4b6aa8
+
4b6aa8
 
4b6aa8
 /*
4b6aa8
  * Testing of chars
4b6aa8
-- 
4b6aa8
2.17.2
4b6aa8