Lib/t/00smoke.t can break

Without the appended patch I get

ok 55 - Requiring ‘ScripAction.pm
[Mon May 14 12:30:23 2007] [crit]: Can’t locate RT/SavedSearch.pm in @INC (@INC contains: lib /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at SavedSearches.pm line 77.
BEGIN failed–compilation aborted at SavedSearches.pm line 77.
Compilation failed in require at lib/t/00smoke.t line 11. (lib/RT.pm:359)
Can’t locate RT/SavedSearch.pm in @INC (@INC contains: lib /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at SavedSearches.pm line 77.
BEGIN failed–compilation aborted at SavedSearches.pm line 77.
Compilation failed in require at lib/t/00smoke.t line 11.
1…55

Others may not see this failure, depending on the order that File::Find returns
results.

Also, how come make test only runs this test?

Nicholas Clark

— …/3.6-RELEASE/lib/t/00smoke.t Mon May 14 10:30:45 2007
+++ lib/t/00smoke.t Mon May 14 12:41:33 2007
@@ -7,7 +7,7 @@
ok(RT::Init, “Basic initialization and DB connectivity”);

use File::Find;
-File::Find::find({wanted => &wanted}, ‘lib/’);
+File::Find::find({wanted => &wanted, no_chdir => 1}, ‘lib/’);
sub wanted { /^*.pm\z/s && ok(require $, "Requiring '$’"); }

Others may not see this failure, depending on the order that
File::Find returns
results.

Also, how come make test only runs this test?

in 3.6 you want make regression or make regression-noapache (you’ll
probably
also need to sudo because it wants to bind port 80).

There has been a lot of work on the 3.7 branches to make 'make test’
work
with a lot less hassle

-kevin