diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-01-20 16:03:45 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-01-20 16:03:45 -0800 |
| commit | 5e031e639df65d7f12a0d2f776f188fde1b98fd9 (patch) | |
| tree | 159f9a76efa89ce40bc0cbe32502d6524b28b985 /tests/testutil.h | |
| parent | 8abf75857e8993a25e50d07bdd6d9628f028d7cc (diff) | |
| download | nng-5e031e639df65d7f12a0d2f776f188fde1b98fd9.tar.gz nng-5e031e639df65d7f12a0d2f776f188fde1b98fd9.tar.bz2 nng-5e031e639df65d7f12a0d2f776f188fde1b98fd9.zip | |
fixes #1163 compat tests are very brittle
This only addresses the newly rewitten compat_tcp test, but it
sets the groundwork for the other tests, so that when they are
updated to the new acutest.h they can use the new marry code to
establish connections cleanly and safely.
Diffstat (limited to 'tests/testutil.h')
| -rw-r--r-- | tests/testutil.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/testutil.h b/tests/testutil.h index 88d978de..a297b603 100644 --- a/tests/testutil.h +++ b/tests/testutil.h @@ -51,8 +51,10 @@ extern void testutil_scratch_addr(const char *, size_t, char *); extern int testutil_marry(nng_socket, nng_socket); // testutil_marry_ex is like testutil_marry, but returns the pipes that -// were connected. The pipe pointers may be NULL if not needed. -extern int testutil_marry_ex(nng_socket, nng_socket, nng_pipe *, nng_pipe *); +// were connected, and includes an optional URL. The pipe pointers and the +// URL may be NULL if not needed. +extern int testutil_marry_ex( + nng_socket, nng_socket, const char *, nng_pipe *, nng_pipe *); // TEST_NNG_PASS tests for NNG success. It reports the failure if it // did not. |
