31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From a664e9ce08ca6c0f9eb2e260b25463eea9c7829b Mon Sep 17 00:00:00 2001
|
|
From: Alexey Tikhonov <atikhono@redhat.com>
|
|
Date: Fri, 15 Oct 2021 22:30:21 +0200
|
|
Subject: [PATCH] TESTS: fixed a bug in define->string conversion
|
|
|
|
Previously result of `AS_STR(OFFLINE_TIMEOUT)` was "OFFLINE_TIMEOUT"
|
|
instead of expected integer value.
|
|
|
|
Reviewed-by: Pawel Polawski <ppolawsk@redhat.com>
|
|
---
|
|
src/tests/cmocka/test_data_provider_be.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/tests/cmocka/test_data_provider_be.c b/src/tests/cmocka/test_data_provider_be.c
|
|
index a6d6ec8802dd0c592c22bec08ac8c6eb154a58e6..49f04ddfb043909559bb8724995c2c8c35e1aac6 100644
|
|
--- a/src/tests/cmocka/test_data_provider_be.c
|
|
+++ b/src/tests/cmocka/test_data_provider_be.c
|
|
@@ -32,7 +32,8 @@
|
|
#define TEST_ID_PROVIDER "ldap"
|
|
|
|
#define OFFLINE_TIMEOUT 2
|
|
-#define AS_STR(param) (#param)
|
|
+#define STR_HELPER(x) #x
|
|
+#define AS_STR(param) STR_HELPER(param)
|
|
|
|
static TALLOC_CTX *global_mock_context = NULL;
|
|
static bool global_timer_added;
|
|
--
|
|
2.31.1
|
|
|