Skip to content

Commit 211f198

Browse files
committed
Make test.pl capable of handling CRLF.
Previously we had problems with test.pl choking on test.desc file input on windows as a result of the test.pl files being checkout out by git with CRLF instead of LF as line endings.
1 parent c60fc86 commit 211f198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regression/test.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ($$)
7676
my @data = grep { !/^\/\// } <FILE>;
7777
close FILE;
7878

79-
chomp @data;
79+
s/\R$// for @data;
8080
if($exit_signal_checks) {
8181
grep { /^\^EXIT=[\(\|\d]*\d+\)?\$$/ } @data or die "$fname: Missing EXIT test\n";
8282
grep { /^\^SIGNAL=\d+\$$/ } @data or die "$fname: Missing SIGNAL test\n";

0 commit comments

Comments
 (0)