Skip to content

Commit d53c2c6

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8facec0 commit d53c2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t9700/test.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ BEGIN
3333
is($r->config_int("test.nonexistent"), undef, "config_int: nonexistent");
3434
ok($r->config_bool("test.booltrue"), "config_bool: true");
3535
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"),
3737
"config_path: ~/foo expansion");
3838
is_deeply([$r->config_path("test.pathmulti")], ["foo", "bar"],
3939
"config_path: multiple values");

0 commit comments

Comments
 (0)