Skip to content

Commit 5cd7fad

Browse files
avargitster
authored andcommitted
t/t2023-checkout-m.sh: fix use of test_must_fail
Change an invocation of test_must_fail() to be inside a test_expect_success() as is our usual pattern. Having it outside caused our tests to fail under prove(1) since we wouldn't print a newline before TAP output: CONFLICT (content): Merge conflict in both.txt # GETTEXT POISON #ok 2 - -m restores 2-way conflicted+resolved file Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 335c6e4 commit 5cd7fad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

t/t2023-checkout-m.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ test_expect_success setup '
1717
test_commit added_in_topic each.txt in_topic
1818
'
1919

20-
test_must_fail git merge master
20+
test_expect_success 'git merge master' '
21+
test_must_fail git merge master
22+
'
2123

2224
clean_branchnames () {
2325
# Remove branch names after conflict lines

0 commit comments

Comments
 (0)