apenwarr-redo/t/201-fail/all.do
Avery Pennarun c38e2bee92 t/201-fail: add a simple test for non-existent source files.
(This actually went uncaught in my redo rewrite.  Oops.)
2012-02-08 22:51:04 -05:00

13 lines
411 B
Text

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
! redo-ifchange fail >&/dev/null || exit 44 # expected to fail
touch fail
../flush-cache
redo-ifchange fail >&/dev/null || exit 55 # expected to pass