Test die on fail.

This commit is contained in:
Thomas Levine 2016-01-25 14:14:13 +00:00
parent d01e993041
commit f2d63b2953
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