aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio_test.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-31 13:26:44 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-31 13:26:44 -0800
commitb0874b1dad787c32093a3ff81311e2d638dc6538 (patch)
treecde1005cef02954893fe2d9786d248930f857200 /src/core/aio_test.c
parent2a4a14646f95b21cbc8f9b5bef8d76cd0fe04fec (diff)
downloadnng-b0874b1dad787c32093a3ff81311e2d638dc6538.tar.gz
nng-b0874b1dad787c32093a3ff81311e2d638dc6538.tar.bz2
nng-b0874b1dad787c32093a3ff81311e2d638dc6538.zip
socket: rename nng_close to nng_socket_close
Diffstat (limited to 'src/core/aio_test.c')
-rw-r--r--src/core/aio_test.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/aio_test.c b/src/core/aio_test.c
index f9663903..d8d70e12 100644
--- a/src/core/aio_test.c
+++ b/src/core/aio_test.c
@@ -155,7 +155,7 @@ test_consumer_cancel(void)
NUTS_TRUE(nng_aio_result(a) == NNG_ECANCELED);
nng_aio_free(a);
- NUTS_TRUE(nng_close(s1) == 0);
+ NUTS_CLOSE(s1);
}
void
@@ -207,8 +207,8 @@ test_traffic(void)
nng_aio_free(rx_aio);
nng_aio_free(tx_aio);
- NUTS_PASS(nng_close(s1));
- NUTS_PASS(nng_close(s2));
+ NUTS_CLOSE(s1);
+ NUTS_CLOSE(s2);
}
void
@@ -226,7 +226,7 @@ test_explicit_timeout(void)
NUTS_TRUE(done == 1);
NUTS_FAIL(nng_aio_result(a), NNG_ETIMEDOUT);
nng_aio_free(a);
- NUTS_PASS(nng_close(s));
+ NUTS_CLOSE(s);
}
void
@@ -247,7 +247,7 @@ test_explicit_expiration(void)
NUTS_TRUE(done == 1);
NUTS_FAIL(nng_aio_result(a), NNG_ETIMEDOUT);
nng_aio_free(a);
- NUTS_PASS(nng_close(s));
+ NUTS_CLOSE(s);
}
void
@@ -265,7 +265,7 @@ test_inherited_timeout(void)
NUTS_TRUE(done == 1);
NUTS_FAIL(nng_aio_result(a), NNG_ETIMEDOUT);
nng_aio_free(a);
- NUTS_PASS(nng_close(s));
+ NUTS_CLOSE(s);
}
void
@@ -283,7 +283,7 @@ test_zero_timeout(void)
NUTS_TRUE(done == 1);
NUTS_FAIL(nng_aio_result(a), NNG_ETIMEDOUT);
nng_aio_free(a);
- NUTS_PASS(nng_close(s));
+ NUTS_CLOSE(s);
}
static void