Skip to content

Commit a5ae65b

Browse files
committed
ci: improve dmon test
1 parent 0e87ae9 commit a5ae65b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/dmon.bats

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ load bats_setup
33
@test "DMON monitoring of filesystem" {
44

55
# Check if the script is being run by PowerShell
6-
[ -n "$PSVersionTable" ] && {
6+
[ -r ${R}/.build_done_win ] && {
77
>&3 echo ">> Skipping DMON test on Windows PowerShell"
88
>&3 echo ">> TODO: run in background, test monitor and quit in PS"
99
return 0
@@ -13,12 +13,11 @@ load bats_setup
1313
return 0
1414
}
1515

16-
17-
(sleep .5;
16+
(sleep 2;
1817
rm -f ${TMP}/dmon_test_create.txt;
1918
touch ${TMP}/dmon_test_create.txt;
2019
rm -f ${TMP}/dmon_test_create.txt;
21-
sleep 2;
20+
sleep 3;
2221
kill -HUP `cat ${TMP}/test_dmon.pid`) &
2322

2423
run ${CJIT} -p ${TMP}/test_dmon.pid --dmon ${T}/dmon.c -- ${TMP}

0 commit comments

Comments
 (0)