aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/reqrep0/xrep_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/reqrep0/xrep_test.c')
-rw-r--r--src/protocol/reqrep0/xrep_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/protocol/reqrep0/xrep_test.c b/src/protocol/reqrep0/xrep_test.c
index 33d834df..8fc36964 100644
--- a/src/protocol/reqrep0/xrep_test.c
+++ b/src/protocol/reqrep0/xrep_test.c
@@ -337,6 +337,7 @@ test_xrep_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));