From 0c57e438f7d8810660eeb5cf3f5c358a14f3b1ee Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Tue, 7 Dec 2004 01:03:00 +0000 Subject: Patch for bug 258579: t/Support/Files.pm should use File::Find; patch by Marc Schumann , r=vladd, a=justdave. --- t/Support/Files.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 't') diff --git a/t/Support/Files.pm b/t/Support/Files.pm index de173e83e..d52380310 100644 --- a/t/Support/Files.pm +++ b/t/Support/Files.pm @@ -23,6 +23,8 @@ package Support::Files; +use File::Find; + # exclude_deps is a hash of arrays listing the files to be excluded # if a module is not available # @@ -33,11 +35,8 @@ package Support::Files; ); -# XXX - this file should really be rewritten to use File::Find or similar -$file = '*'; -@files = (glob($file), glob('Bugzilla/*.pm'), glob('Bugzilla/*/*.pm'), - glob('Bugzilla/*/*/*.pm'), glob('Bugzilla/*/*/*/*.pm'), - glob('Bugzilla/*/*/*/*/*.pm')); +@files = glob('*'); +find(sub { push(@files, $File::Find::name) if $_ =~ /\.pm$/;}, 'Bugzilla'); sub have_pkg { my ($pkg) = @_; -- cgit v1.2.3-24-g4f1b