aboutsummaryrefslogtreecommitdiff
path: root/src/testing/nuts.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2021-01-03 10:35:06 -0800
committerGitHub <noreply@github.com>2021-01-03 10:35:06 -0800
commit9c6ac231b8b7d0c597a4010135edb14b8513e3f6 (patch)
treeadfad0200b03da6cb176f5f3c6045407c8f96b29 /src/testing/nuts.h
parentd5814d58496ff1fbbb2e6727ff8bffe78204223c (diff)
downloadnng-9c6ac231b8b7d0c597a4010135edb14b8513e3f6.tar.gz
nng-9c6ac231b8b7d0c597a4010135edb14b8513e3f6.tar.bz2
nng-9c6ac231b8b7d0c597a4010135edb14b8513e3f6.zip
fixes #1398 integrate new acutest.h (#1400)
Diffstat (limited to 'src/testing/nuts.h')
-rw-r--r--src/testing/nuts.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/testing/nuts.h b/src/testing/nuts.h
index 2ed8744c..36fb4612 100644
--- a/src/testing/nuts.h
+++ b/src/testing/nuts.h
@@ -1,5 +1,5 @@
//
-// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
+// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
@@ -131,15 +131,16 @@ extern const char *nuts_client_crt;
TEST_CHECK_( \
rv_ == 0, "nng_recv (%d %s)", rv_, nng_strerror(rv_)); \
TEST_CHECK_(sz_ == strlen(string) + 1, "length %d want %d", \
- sz_, strlen(string) + 1); \
+ (int) sz_, (int) strlen(string) + 1); \
buf_[sizeof(buf_) - 1] = '\0'; \
TEST_CHECK_( \
strcmp(string, buf_) == 0, "%s == %s", string, buf_); \
} while (0)
-#define NUTS_MATCH(s1, s2) \
- do { \
- TEST_CHECK_(strcmp(s1, s2) == 0, "%s == %s", s1, s2); \
+#define NUTS_MATCH(s1, s2) \
+ do { \
+ TEST_CHECK_(strcmp(s1, s2) == 0, "%s == %s", (char *) s1, \
+ (char *) s2); \
} while (0)
#define NUTS_NULL(x) \