Skip to content

Commit 0ed45a1

Browse files
committed
t3900: test rejecting log message with NULs correctly
It is not like that our longer term desire is to someday start accept log messages with NULs in them, so it is wrong to mark a test that demonstrates "git commit" that correctly fails given such an input as "expect-failure". "git commit" should fail today, and it should fail the same way in the future given a message with NUL in it. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 214a5f2 commit 0ed45a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t3900-i18n-commit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ test_expect_success 'no encoding header for base case' '
3434
test z = "z$E"
3535
'
3636

37-
test_expect_failure 'UTF-16 refused because of NULs' '
37+
test_expect_success 'UTF-16 refused because of NULs' '
3838
echo UTF-16 >F &&
39-
git commit -a -F "$TEST_DIRECTORY"/t3900/UTF-16.txt
39+
test_must_fail git commit -a -F "$TEST_DIRECTORY"/t3900/UTF-16.txt
4040
'
4141

4242

0 commit comments

Comments
 (0)