aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/aio.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/aio.c b/tests/aio.c
index fc5d4baf..8af5dbc7 100644
--- a/tests/aio.c
+++ b/tests/aio.c
@@ -129,6 +129,14 @@ Main({
})
});
+
+ Convey("We cannot set insane IOVs", {
+ nng_aio *aio;
+ nng_iov iov;
+
+ So(nng_aio_alloc(&aio, NULL, NULL) == 0);
+ So(nng_aio_set_iov(aio, 1024, &iov) == NNG_EINVAL);
+ });
});
nng_fini();