From 7b5ee4e9ac59f02cba6d5391031af26570a27255 Mon Sep 17 00:00:00 2001 From: Emmanuel Roullit Date: Mon, 23 Apr 2012 18:05:45 +0200 Subject: [PATCH] Stop created capture thread during unit test. The command "dabba capture stop" is issued individually on all capture thread created during the test. --- dabba/test/t1100-capture.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dabba/test/t1100-capture.sh b/dabba/test/t1100-capture.sh index 1e01626..1c3df7c 100755 --- a/dabba/test/t1100-capture.sh +++ b/dabba/test/t1100-capture.sh @@ -89,6 +89,14 @@ do " done +for i in `seq 10` +do + test_expect_success "Start a capture thread #$i on loopback" " + $DABBA_PATH/dabba capture list > result && + $DABBA_PATH/dabba capture stop --id `get_capture_thread_id 0 result` + " +done + test_expect_success "Cleanup: Stop dabbad" " killall dabbad " -- 2.11.4.GIT