@matheusbsbs / matheus-bagliano / commits / 8b2337a589
Fork 0

t3902: Protect against OS X normalization

8424981: "Fix invalid read in quote_c_style_counted" introduced a test that used "caractère spécial" as a directory name. Git creates it as "caract\303\250re sp\303\251cial" OS X stores it as "caracte\314\200re spe\314\201cial" To work around this problem, use the already introduced $FN as the directory name. Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Brian Gernhardt committed Feb 8, 2010 at 23:07 UTC 8b2337a5893479ee18dfb21a1d4aa5fc1608872d
1 file changed +4 -4
t/t3902-quoted.sh
+4 -4
@@ -25,7 +25,7 @@ for_each_name () {
25 for name in \
26 Name "Name and a${LF}LF" "Name and an${HT}HT" "Name${DQ}" \
27 "$FN$HT$GN" "$FN$LF$GN" "$FN $GN" "$FN$GN" "$FN$DQ$GN" \
28 - "With SP in it" "caractère spécial/file"
28 + "With SP in it" "$FN/file"
29 do
30 eval "$1"
31 done
@@ -33,7 +33,7 @@ for_each_name () {
33
34 test_expect_success setup '
35
36 - mkdir "caractère spécial" &&
36 + mkdir "$FN" &&
37 for_each_name "echo initial >\"\$name\""
38 git add . &&
39 git commit -q -m Initial &&
@@ -51,11 +51,11 @@ Name
51 "Name and an\tHT"
52 "Name\""
53 With SP in it
54 -"caract\303\250re sp\303\251cial/file"
54 "\346\277\261\351\207\216\t\347\264\224"
55 "\346\277\261\351\207\216\n\347\264\224"
56 "\346\277\261\351\207\216 \347\264\224"
57 "\346\277\261\351\207\216\"\347\264\224"
58 +"\346\277\261\351\207\216/file"
59 "\346\277\261\351\207\216\347\264\224"
60 EOF
61
@@ -65,11 +65,11 @@ Name
65 "Name and an\tHT"
66 "Name\""
67 With SP in it
68 -caractère spécial/file
68 "濱野\t純"
69 "濱野\n純"
70 濱野 純
71 "濱野\"純"
72 +濱野/file
73 濱野純
74 EOF
75