test for --timeout

This commit is contained in:
Thomas Levine 2016-02-29 03:45:27 +00:00
parent 8aab5dad0d
commit adc2c0dbdc
4 changed files with 6 additions and 0 deletions

3
tests/Flags/--timeout Executable file
View File

@ -0,0 +1,3 @@
set -e
$TEST_SHELL ../../urchin --shell sh .slow-tests
! $TEST_SHELL ../../urchin --shell sh --timeout 0.3 .slow-tests

1
tests/Flags/.slow-tests/a Executable file
View File

@ -0,0 +1 @@
sleep 1s

1
tests/Flags/.slow-tests/b Executable file
View File

@ -0,0 +1 @@
sleep 2s

1
tests/Flags/.slow-tests/c Executable file
View File

@ -0,0 +1 @@
sleep 3s