Skip to content

Commit 7dce806

Browse files
krisheanbagder
authored andcommitted
Enable test-json.pl to run on windows
1 parent cac264f commit 7dce806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-json.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
$o =~ s/[ \t\r\n]+/ /g;
3333

3434
# A future version should also check stderr
35-
my @out = `./trurl --json $i 2>/dev/null`;
35+
my @out = ($^O eq 'MSWin32')?`.\\trurl.exe --json $i 2>nul`:`./trurl --json $i 2>/dev/null`;
3636
my $result = join("", @out);
3737
chomp $result;
3838
$result =~ s/[ \t\r\n]+/ /g;

0 commit comments

Comments
 (0)