aboutsummaryrefslogtreecommitdiff
path: root/tests/compat_testutil.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-26 09:57:56 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-26 09:57:56 -0800
commitd93cbc059cd1e42773d1aec19f8b49a972f2eac3 (patch)
tree71a6c79e8ae5c2ef9ed9beb06088ccd4d832fca9 /tests/compat_testutil.h
parenta9e81c87a7b2a203c2bd4f310f936af46ef42fc1 (diff)
downloadnng-d93cbc059cd1e42773d1aec19f8b49a972f2eac3.tar.gz
nng-d93cbc059cd1e42773d1aec19f8b49a972f2eac3.tar.bz2
nng-d93cbc059cd1e42773d1aec19f8b49a972f2eac3.zip
Added more plumbing to facilitate test writing & compatibility.
Also, while here fixed a bug for the PAIR protocol in compat mode. It should now be possible to import more of the nanomsg tests directly with little or no modification.
Diffstat (limited to 'tests/compat_testutil.h')
-rw-r--r--tests/compat_testutil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/compat_testutil.h b/tests/compat_testutil.h
index 58020331..79adb104 100644
--- a/tests/compat_testutil.h
+++ b/tests/compat_testutil.h
@@ -60,6 +60,8 @@ static int test_setsockopt_impl (char *file, int line, int sock, int level,
#define test_setsockopt(s, l, o, v, z) test_setsockopt_impl (__FILE__, \
__LINE__, (s), (l), (o), (v), (z))
+#define NN_UNUSED
+
static int test_socket_impl (char *file, int line, int family,
int protocol)
{