diff options
| -rw-r--r-- | tests/cwd/all.do | 2 | ||||
| -rw-r--r-- | tests/include.sh | 4 | 
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/cwd/all.do b/tests/cwd/all.do index 866a9ca..106a721 100644 --- a/tests/cwd/all.do +++ b/tests/cwd/all.do @@ -5,5 +5,5 @@ rm -rf a d/b d/d/c  redo-ifchange a  assert "cwd" << ! -[ "$(cat a)" == "abc" ] +[ "$(cat a)" = "abc" ]  ! diff --git a/tests/include.sh b/tests/include.sh index 7052585..317ab52 100644 --- a/tests/include.sh +++ b/tests/include.sh @@ -1,7 +1,9 @@  assert() { -	if source /dev/stdin; then +	set +e +	if . /dev/stdin; then  		echo "PASS: $1" >&2  	else  		echo "FAIL: $1" >&2  	fi +	set -e  }  | 
