aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-04-16 14:58:08 +0200
committerMarcel Raad <raad@teamviewer.com>2017-04-17 08:33:04 +0200
commitc25aba1254135a230971c1ed2a8140bde52b7b07 (patch)
tree5e1ad69380c91f24e19b211228158309c473754b
parent5cefe201e924867f7b6e078a6c5fdce013bb510b (diff)
extern-scan.pl: strip trailing CR
This makes test 1135 pass with CRLF checkouts. Ref: https://github.com/curl/curl/pull/1344#issuecomment-289243166 Closes https://github.com/curl/curl/pull/1422
-rwxr-xr-xtests/extern-scan.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/extern-scan.pl b/tests/extern-scan.pl
index 7a5c29140..88594ed69 100755
--- a/tests/extern-scan.pl
+++ b/tests/extern-scan.pl
@@ -49,7 +49,9 @@ sub scanheader {
open H, "<$f" || die;
while(<H>) {
if (/^(CURL_EXTERN.*)/) {
- print "$1\n";
+ my $decl = $1;
+ $decl =~ s/\r$//;
+ print "$decl\n";
}
}
close H;