Refactor ClientHello extension parsing
[openssl.git] / test / recipes / 10-test_bn.t
index 2c42cacf6ada961373f7abb68e1939ff7ad4deae..7e728f4e16847b4eb487ab937dadbb0b2880d68c 100644 (file)
@@ -5,14 +5,13 @@ use warnings;
 
 use Math::BigInt;
 
-use Test::More 0.96;
-use OpenSSL::Test qw/:DEFAULT top_file/;
+use OpenSSL::Test qw/:DEFAULT srctop_file/;
 
 setup("test_bn");
 
 plan tests => 3;
 
-require_ok(top_file("test","recipes","bc.pl"));
+require_ok(srctop_file("test","recipes","bc.pl"));
 
 my $testresults = "tmp.bntest";
 my $init = ok(run(test(["bntest"], stdout => $testresults)), 'initialize');
@@ -26,7 +25,7 @@ my $init = ok(run(test(["bntest"], stdout => $testresults)), 'initialize');
             @lines = <DATA>;
             close DATA;
         }
-        chomp(@lines);
+        map { s/\R//; } @lines;        # chomp(@lines);
 
         plan tests => scalar grep(/^print /, @lines);