Skip to content

Commit 77d2ae7

Browse files
committed
Allow cmp to error out without stopping script execution in DIFF unit test.
1 parent da7a183 commit 77d2ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/DIFF/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test_case() {
1010
cd "result"
1111
$INTERP $SCRIPT a.txt b.txt > "diff"
1212
patch -s --posix --batch -p0 < "diff"
13-
if cmp -s a.txt b.txt; then
13+
if { set +e; cmp -s a.txt b.txt; }; then
1414
printf "\tCASE %s: PASS\n" "$1"
1515
else
1616
printf "\tCASE %s: FAIL\n" "$1"

0 commit comments

Comments
 (0)