Skip to content

Commit

Permalink
Adding extra diag for checkrandom.pl in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
david-dick committed Jan 3, 2025
1 parent ab4433b commit 515a5a0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions t/getrandom.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ use Config;
use strict;
use warnings;

my %optional;
if ($^O eq 'MSWin32') {
} else {
eval `cat ./check_random.pl`;
if ($optional{DEFINE}) {
diag("check_random.pl produced the flag of $optional{DEFINE}");
}
}

SKIP: {
if ($^O eq 'linux') { # LD_PRELOAD trick works here
my %optional;
eval `cat ./check_random.pl`;
if (($optional{DEFINE}) && ($optional{DEFINE} eq '-DHAVE_CRYPT_URANDOM_NATIVE_GETRANDOM')) {

my $failed_number_of_bytes = 13;
Expand Down

0 comments on commit 515a5a0

Please sign in to comment.