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

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