diff --git a/t/curse/.gitignore b/t/curse/.gitignore index ef540df..d99e317 100644 --- a/t/curse/.gitignore +++ b/t/curse/.gitignore @@ -1,2 +1,3 @@ *.n1 *.n2 +*.count diff --git a/t/curse/all.do b/t/curse/all.do index 675d041..48cf8e5 100644 --- a/t/curse/all.do +++ b/t/curse/all.do @@ -1,3 +1,8 @@ redo-ifchange 1.n0 2.n0 3.n0 DEPS=$(seq 10 | sed 's/$/.n1/') redo-ifchange $DEPS +COUNT=$(cat *.count | wc -l) +if ! [ "$COUNT" = 100 ]; then + echo "expected 100 writes, got $COUNT" >&2 + exit 42 +fi diff --git a/t/curse/clean.do b/t/curse/clean.do index 6b093db..f8bd9bb 100644 --- a/t/curse/clean.do +++ b/t/curse/clean.do @@ -1 +1,2 @@ -rm -f *~ .*~ *.n1 *.n2 *.tmp +rm -f *~ .*~ *.n1 *.n2 *.tmp *.count + diff --git a/t/curse/default.n2.do b/t/curse/default.n2.do index fd6689c..99675e2 100644 --- a/t/curse/default.n2.do +++ b/t/curse/default.n2.do @@ -1 +1,2 @@ echo n2-$1 +echo $1 >>$1.count