about summary refs log tree commit homepage
path: root/test/queue-idle-1.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-12-01 10:53:56 +0000
committerEric Wong <normalperson@yhbt.net>2013-12-02 04:36:32 +0000
commitce5cce161d504df849a50ee1080db42a66ca8c42 (patch)
treebf9ad52f14b9200dfc5beaf5235497cd3cc24d2d /test/queue-idle-1.c
parent2410738dcf00cda49c9f1d5847289f6a48944c2a (diff)
downloadcmogstored-ce5cce161d504df849a50ee1080db42a66ca8c42.tar.gz
Unfortunately, none of the C-only tests are run with valgrind
(however all of the Ruby ones are).
Diffstat (limited to 'test/queue-idle-1.c')
-rw-r--r--test/queue-idle-1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/queue-idle-1.c b/test/queue-idle-1.c
index 3b71923..6dfba51 100644
--- a/test/queue-idle-1.c
+++ b/test/queue-idle-1.c
@@ -58,6 +58,7 @@ static void test_blocking(void)
         printf("  end wait: %d\n", (int)time(NULL));
         assert(1 == read(fds[0], buf, 1) && "read failed");
         assert(buf[0] == 'B' && "didn't read expected 'B'");
+        assert(0 == pthread_join(thr, NULL) && "pthread_join failed");
 
         teardown();
 }