Skip to content

Commit

Permalink
try fix dmon with sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Dec 9, 2024
1 parent a5ae65b commit ed41bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/dmon.bats
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ load bats_setup
rm -f ${TMP}/dmon_test_create.txt;
touch ${TMP}/dmon_test_create.txt;
rm -f ${TMP}/dmon_test_create.txt;
sleep 3;
sleep 10;
kill -HUP `cat ${TMP}/test_dmon.pid`) &

run ${CJIT} -p ${TMP}/test_dmon.pid --dmon ${T}/dmon.c -- ${TMP}
assert_failure # TODO: cleaner way than kill -HUP
# assert_failure # TODO: cleaner way than kill -HUP
assert_line --regexp '^CREATE:.*dmon_test_create.txt$'
assert_line --regexp '^DELETE:.*dmon_test_create.txt$'
}

0 comments on commit ed41bb5

Please sign in to comment.