diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-02-05 10:23:35 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-02-05 10:23:35 -0800 |
| commit | 844ce972fed056e1c4e0517e43b814c62d68edce (patch) | |
| tree | adfa91e3f7188d268f3d081e80c14f7e8a609a87 /tests | |
| parent | b893f8ff1f96dde567fa6a75f4b15bf69e53d6f5 (diff) | |
| download | nng-844ce972fed056e1c4e0517e43b814c62d68edce.tar.gz nng-844ce972fed056e1c4e0517e43b814c62d68edce.tar.bz2 nng-844ce972fed056e1c4e0517e43b814c62d68edce.zip | |
fixes #228 aio iov should have larger limits (dynamically allocated)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/aio.c | 8 |
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(); |
