Subject: | unit tests invoke other perl scripts (. in @INC) |
I found this while debugging t/storable.t
The code injects relative directories to call storable-test.pl. This patch would put absolute paths in place:
diff --git a/modules/URI/URI/t/storable.t b/modules/URI/URI/t/storable.t
index cf6e65a..c8b1ea5 100644
--- a/modules/URI/URI/t/storable.t
+++ b/modules/URI/URI/t/storable.t
@@ -10,7 +10,7 @@ if ($@) {
exit;
}
-system($^X, "-Iblib/lib", "t/storable-test.pl", "store");
-system($^X, "-Iblib/lib", "t/storable-test.pl", "retrieve");
+system($^X, "-Mblib", "t/storable-test.pl", "store");
+system($^X, "-Mblib", "t/storable-test.pl", "retrieve");
unlink('urls.sto');