Commit a7c182ac81f43ee290d92ff16781ea0b908c33c3

Stefan Sperling 2019-03-27T07:55:04

missing error return in test_double_add

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/regress/cmdline/add.sh b/regress/cmdline/add.sh
index 89d8177..07907d1 100755
--- a/regress/cmdline/add.sh
+++ b/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