Test die on fail.

This commit is contained in:
Thomas Levine 2016-01-25 14:14:13 +00:00
parent eda4a6e42c
commit 72fa30e787
5 changed files with 14 additions and 0 deletions

View File

View File

@ -0,0 +1 @@
false

View File

@ -0,0 +1 @@
false

View File

@ -0,0 +1 @@
false

11
tests/Die on fail. Executable file
View File

@ -0,0 +1,11 @@
tmp=$(mktemp)
../urchin -e -f ./.die-on-fail > $tmp
result=$?
grep '1 should run.' $tmp
grep '2 should run.' $tmp
grep -v '3 should not run.' $tmp
grep -v '4 should not run.' $tmp
rm $tmp
exit $result