From e0d77865e2e51f2e3d61d5c36458739101d65005 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Tue, 20 Jun 2023 19:39:28 +0000 Subject: [PATCH] expand test coverage of test_double_add a bit more --- regress/cmdline/add.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/regress/cmdline/add.sh b/regress/cmdline/add.sh index 5cec87c8..eabde9c2 100755 --- a/regress/cmdline/add.sh +++ b/regress/cmdline/add.sh @@ -65,6 +65,24 @@ test_double_add() { ret=$? if [ $ret -ne 0 ]; then diff -u $testroot/stdout.expected $testroot/stdout + test_done "$testroot" "$ret" + return 1 + fi + + echo "new file" > $testroot/wt/epsilon/zeta2 + (cd $testroot/wt && got add epsilon/zeta* > $testroot/stdout) + ret=$? + if [ $ret -ne 0 ]; then + echo "got add failed unexpectedly" >&2 + test_done "$testroot" 1 + return 1 + fi + + echo 'A epsilon/zeta2' > $testroot/stdout.expected + cmp -s $testroot/stdout.expected $testroot/stdout + ret=$? + if [ $ret -ne 0 ]; then + diff -u $testroot/stdout.expected $testroot/stdout fi test_done "$testroot" "$ret" } -- 2.11.4.GIT