my $Makefile = top_file("Makefile");
if (open(FH, $Makefile)) {
$OpenSSL_ver =
- (map { chomp; s/^VERSION=([^\s]*)\s*$//; $1 } grep { /^VERSION=/ } <FH>)[0];
+ (map { s/\R//; s/^VERSION=([^\s]*)\s*$//; $1 } grep { /^VERSION=/ } <FH>)[0];
close FH;
}
my $MINFO_ver = "";
while(<FH>) {
- chomp;
+ s/\R//; # chomp;
if (/^VERSION=([^\s]*)\s*$/) {
$MINFO_ver = $1;
}
last if /^RELATIVE_DIRECTORY=test$/;
}
while(<FH>) {
- chomp;
+ s/\R//; # chomp;
last if /^EXE=/;
}
close FH;
@lines = <DATA>;
close DATA;
}
- chomp(@lines);
+ map { s/\R//; } @lines; # chomp(@lines);
plan tests => scalar grep(/^print /, @lines);
my $cmd = "openssl";
my @ciphers =
- map { chomp; s/^\s+//; s/\s+$//; split /\s+/ }
+ map { s/^\s+//; s/\s+$//; split /\s+/ }
run(app([$cmd, "list", "-cipher-commands"]), capture => 1);
plan tests => 1 + (scalar @ciphers)*2;
open DATA, "req-check.err";
SKIP: {
plan skip_all => "skipping req conversion test for $reqfile"
- if grep /Unknown Public Key/, map { chomp } <DATA>;
+ if grep /Unknown Public Key/, map { s/\R//; } <DATA>;
tconversion("req", "testreq.pem", @openssl_args);
}
setup($test_name);
plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
- unless (map { chomp; s/^SHARED_LIBS=\s*//; $_ }
+ unless (map { s/\R//; s/^SHARED_LIBS=\s*//; $_ }
grep { /^SHARED_LIBS=/ }
do { local @ARGV = ( top_file("Makefile") ); <> })[0] ne "";
setup($test_name);
plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
- unless (map { chomp; s/^SHARED_LIBS=\s*//; $_ }
+ unless (map { s/\R//; s/^SHARED_LIBS=\s*//; $_ }
grep { /^SHARED_LIBS=/ }
do { local @ARGV = ( top_file("Makefile") ); <> })[0] ne "";
setup($test_name);
plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
- unless (map { chomp; s/^SHARED_LIBS=\s*//; $_ }
+ unless (map { s/\R//; s/^SHARED_LIBS=\s*//; $_ }
grep { /^SHARED_LIBS=/ }
do { local @ARGV = ( top_file("Makefile") ); <> })[0] ne "";
setup($test_name);
plan skip_all => "$test_name can only be performed with OpenSSL configured shared"
- unless (map { chomp; s/^SHARED_LIBS=\s*//; $_ }
+ unless (map { s/\R//; s/^SHARED_LIBS=\s*//; $_ }
grep { /^SHARED_LIBS=/ }
do { local @ARGV = ( top_file("Makefile") ); <> })[0] ne "";