From d93cbc059cd1e42773d1aec19f8b49a972f2eac3 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 26 Jan 2017 09:57:56 -0800 Subject: 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. --- tests/compat_testutil.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/compat_testutil.h') 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) { -- cgit v1.2.3-70-g09d2