aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/reqrep0/xreq_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/reqrep0/xreq_test.c')
-rw-r--r--src/protocol/reqrep0/xreq_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/protocol/reqrep0/xreq_test.c b/src/protocol/reqrep0/xreq_test.c
index 57ad7f0a..68a7c7f5 100644
--- a/src/protocol/reqrep0/xreq_test.c
+++ b/src/protocol/reqrep0/xreq_test.c
@@ -337,6 +337,7 @@ test_xreq_ttl_option(void)
TEST_NNG_PASS(nng_setopt_int(rep, opt, 1));
TEST_NNG_FAIL(nng_setopt_int(rep, opt, 0), NNG_EINVAL);
TEST_NNG_FAIL(nng_setopt_int(rep, opt, -1), NNG_EINVAL);
+ TEST_NNG_FAIL(nng_setopt_int(rep, opt, 16), NNG_EINVAL);
TEST_NNG_FAIL(nng_setopt_int(rep, opt, 256), NNG_EINVAL);
TEST_NNG_PASS(nng_setopt_int(rep, opt, 3));
TEST_NNG_PASS(nng_getopt_int(rep, opt, &v));