Subject: | Module fails when different options are selected |
When using this module to test some of our packages, I ran across an error that would report that my module didn't report a version when it actually did. I had selected that it not run the prereq tests. When running the test in verbose mode, I noticed that it was checking the version before loading the module. After looking at the code, I noticed that the list of tests to run were pulled out of a hash and from programming with perl, knew that there was no guarantee of the order that the tests would come out. I created the patch to fix that problem.
Trevor
--- lib/Test/Distribution.pm 2003-08-07 15:59:59.000000000 -0700
+++ lib/Test/Distribution.pm.new 2003-08-07 16:00:35.000000000 -0700
@@ -96,7 +96,7 @@
plan tests => $tests;
- for my $type (keys %perform) {
+ for my $type (grep exists $perform{$_}, @types) {
$testers{$type}->run_tests;
}
}