From 844ce972fed056e1c4e0517e43b814c62d68edce Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 5 Feb 2018 10:23:35 -0800 Subject: fixes #228 aio iov should have larger limits (dynamically allocated) --- tests/aio.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') 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(); -- cgit v1.2.3-70-g09d2