aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-09 17:23:44 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-09 17:23:44 -0800
commit472a802cfd51ace744fcc73160326e94a891234d (patch)
tree091f9dac4a2ac1abdb8d19db06b79882c521d360 /tests
parentfaedf9891863331ffaad87561b57e8ae2ac9d74f (diff)
downloadnng-472a802cfd51ace744fcc73160326e94a891234d.tar.gz
nng-472a802cfd51ace744fcc73160326e94a891234d.tar.bz2
nng-472a802cfd51ace744fcc73160326e94a891234d.zip
(Briefly) debug output for hang in survey test.
Diffstat (limited to 'tests')
-rw-r--r--tests/survey.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/survey.c b/tests/survey.c
index 138b61e0..58de5986 100644
--- a/tests/survey.c
+++ b/tests/survey.c
@@ -117,6 +117,9 @@ Main({
So(nng_recvmsg(surv, &msg, 0) == NNG_ETIMEDOUT);
Convey("And goes to non-survey state", {
+ printf("WAITING HERE");
+ rtimeo = 50000;
+ So(nng_setopt(surv, NNG_OPT_RCVTIMEO, &rtimeo, sizeof (rtimeo)) == 0);
rv = nng_recvmsg(surv, &msg, 0);
So(rv== NNG_ESTATE);
})