projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Configure,test/recipes: "pin" glob to File::Glob::glob.
[openssl.git]
/
test
/
run_tests.pl
diff --git
a/test/run_tests.pl
b/test/run_tests.pl
index 6ce1521a75829ded30bade3c3a33885455e8e69d..b1084138ddf20185a35adce3359e53383e98714a 100644
(file)
--- a/
test/run_tests.pl
+++ b/
test/run_tests.pl
@@
-16,6
+16,9
@@
BEGIN {
use File::Spec::Functions qw/catdir catfile curdir abs2rel rel2abs/;
use File::Basename;
use File::Spec::Functions qw/catdir catfile curdir abs2rel rel2abs/;
use File::Basename;
+if ($^O ne "VMS") {
+ use File::Glob qw/glob/;
+}
use Test::Harness qw/runtests $switches/;
my $srctop = $ENV{SRCTOP} || $ENV{TOP};
use Test::Harness qw/runtests $switches/;
my $srctop = $ENV{SRCTOP} || $ENV{TOP};
@@
-42,13
+45,13
@@
my $list_mode = scalar(grep /^list$/, @tests) != 0;
if (grep /^(alltests|list)$/, @tests) {
@tests = grep {
basename($_) =~ /^[0-9][0-9]-[^\.]*\.t$/
if (grep /^(alltests|list)$/, @tests) {
@tests = grep {
basename($_) =~ /^[0-9][0-9]-[^\.]*\.t$/
- } glob(
'"'.catfile($recipesdir,"*.t").'"'
);
+ } glob(
catfile($recipesdir,"*.t")
);
} else {
my @t = ();
foreach (@tests) {
push @t, grep {
basename($_) =~ /^[0-9][0-9]-[^\.]*\.t$/
} else {
my @t = ();
foreach (@tests) {
push @t, grep {
basename($_) =~ /^[0-9][0-9]-[^\.]*\.t$/
- } glob(
'"'.catfile($recipesdir,"*-$_.t").'"'
);
+ } glob(
catfile($recipesdir,"*-$_.t")
);
}
@tests = @t;
}
}
@tests = @t;
}