t/201-fail: add a simple test for non-existent source files.

(This actually went uncaught in my redo rewrite.  Oops.)
This commit is contained in:
Avery Pennarun 2012-02-08 22:47:34 -05:00
commit c38e2bee92

View file

@ -1,5 +1,13 @@
rm -f this-doesnt-exist
! redo this-doesnt-exist >&/dev/null || exit 32 # expected to fail
! redo-ifchange this-doesnt-exist >&/dev/null || exit 33 # expected to fail
redo-ifcreate this-doesnt-exist >&/dev/null || exit 34 # expected to pass
rm -f fail rm -f fail
! redo-ifchange fail >&/dev/null || exit 44 # expected to fail ! redo-ifchange fail >&/dev/null || exit 44 # expected to fail
touch fail touch fail
../flush-cache ../flush-cache
redo-ifchange fail >&/dev/null || exit 55 # expected to pass redo-ifchange fail >&/dev/null || exit 55 # expected to pass