When running the unit tests on a newly installed MAIN branch, it fails due to not finding
Algorithm::Diff
in Merge.pm. The INC path does not show
lib/CPAN
but the use clause seems to require that.
Problem does not occur at rev 11778 --
TW
Problem recurred in rev 11785 or earlier --
TW
I have gotten the test cases to run again by applying the following patch, but I am not sure whether this is not supposed to work without this patch. Can somebody who understands the use of these CPAN modules comment?
Index: test/bin/TestRunner.pl
===================================================================
--- test/bin/TestRunner.pl (revision 11785)
+++ test/bin/TestRunner.pl (working copy)
@@ -16,6 +16,7 @@
unshift @INC, "$root/test/unit";
unshift @INC, "$root/bin";
unshift @INC, "$root/lib";
+ unshift @INC, "$root/lib/CPAN/lib";
require 'setlib.cfg';
};
OK, I understand. Tests will work without the patch as long as
LocalLib.cfg
is configured to add the
lib/CPAN/lib
dir, and a
use TWiki
occurs early enough in the test. But it's a bit hit-and-miss, so what you propose is a reasonable thing to do; please go ahead and check it in.
CC
Test environment should not to be marked "Waiting for Release", Closed will do.
haj