mingw: fix t9700's assumption about directory separators
This test assumed that there is only one directory separator (the forward slash), not two equivalent directory separators. However, on Windows, the back slash and the forward slash *are* equivalent. Let's paper over this issue by converting the backward slashes to forward ones in the test that fails with MSYS2 otherwise. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Jan 27, 2016 at 17:19 UTC
d53c2c67380f769f91fd45cc8c63a5883245ccca
1 file changed
+1
-1
t/t9700/test.pl
+1
-1
@@ -33,7 +33,7 @@ is($r->config_int("test.int"), 2048, "config_int: integer");
33
is($r->config_int("test.nonexistent"), undef, "config_int: nonexistent");
34
ok($r->config_bool("test.booltrue"), "config_bool: true");
35
ok(!$r->config_bool("test.boolfalse"), "config_bool: false");
36
-is($r->config_path("test.path"), $r->config("test.pathexpanded"),
36
+is($r->config_path("test.path") =~ s/\\/\//gr, $r->config("test.pathexpanded"),
37
"config_path: ~/foo expansion");
38
is_deeply([$r->config_path("test.pathmulti")], ["foo", "bar"],
39
"config_path: multiple values");