Commit Diff


commit - 71a293558dcac7d17b10ae63f911aaf3f5b30df2
commit + a7c182ac81f43ee290d92ff16781ea0b908c33c3
blob - 89d8177e1a437bbfc5b5f2c4146d7b266f1ffcbc
blob + 07907d12e4ebb64b80b1a0e7e0158d00be049a8f
--- regress/cmdline/add.sh
+++ regress/cmdline/add.sh
@@ -58,6 +58,7 @@ function test_double_add {
 	if [ "$ret" == "0" ]; then
 		echo "got add command succeeded unexpectedly" >&2
 		test_done "$testroot" 1
+		return 1
 	fi
 
 	cmp $testroot/stderr.expected $testroot/stderr