From: Johannes Schindelin Date: Tue, 3 Apr 2018 16:28:18 +0000 (+0200) Subject: t1300: avoid relying on a bug X-Git-Tag: v2.18.0-rc0~100^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/85bf5d61e717f79f7ac68d15e336e54293035405 t1300: avoid relying on a bug The test case 'unset with cont. lines' relied on a bug that is about to be fixed: it tests *explicitly* that removing the last entry from a config section leaves an *empty* section behind. Let's fix this test case not to rely on that behavior, simply by preventing the section from becoming empty. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/t/t1300-config.sh b/t/t1300-config.sh index 8f37ffadb1..05c011ee03 100755 --- a/t/t1300-config.sh +++ b/t/t1300-config.sh @@ -108,6 +108,7 @@ bar = foo [beta] baz = multiple \ lines +foo = bar EOF test_expect_success 'unset with cont. lines' ' @@ -118,6 +119,7 @@ cat > expect <<\EOF [alpha] bar = foo [beta] +foo = bar EOF test_expect_success 'unset with cont. lines is correct' 'test_cmp expect .git/config'