Code

t5100: Avoid filename "nul"
authorJunio C Hamano <gitster@pobox.com>
Wed, 28 May 2008 06:12:29 +0000 (23:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 May 2008 06:12:29 +0000 (23:12 -0700)
There are broken filesystems that cannot have a file whose name is "nul"
anywhere on it.  Rename the test file to make ourselves more portable.

Noticed by Mark Levedahl.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5100-mailinfo.sh
t/t5100/nul [deleted file]
t/t5100/nul-plain [new file with mode: 0644]

index a8b78ebf7d021cb626d4452545b5f4d1e0efe34f..577ecc210a55a5da10552a4415c4cbb5e321039b 100755 (executable)
@@ -27,8 +27,8 @@ done
 
 test_expect_success 'respect NULs' '
 
-       git mailsplit -d3 -o. ../t5100/nul &&
-       cmp ../t5100/nul 001 &&
+       git mailsplit -d3 -o. ../t5100/nul-plain &&
+       cmp ../t5100/nul-plain 001 &&
        (cat 001 | git mailinfo msg patch) &&
        test 4 = $(wc -l < patch)
 
diff --git a/t/t5100/nul b/t/t5100/nul
deleted file mode 100644 (file)
index 3d40691..0000000
Binary files a/t/t5100/nul and /dev/null differ
diff --git a/t/t5100/nul-plain b/t/t5100/nul-plain
new file mode 100644 (file)
index 0000000..3d40691
Binary files /dev/null and b/t/t5100/nul-plain differ