[Rt-devel] make test error
Todd Chapman
todd at chaka.net
Mon Feb 21 16:57:48 EST 2005
Well that was annoying. File::Find does a chdir and then
shit happens.
Optional modules can still be a problem. The workaround isn't
the best but...
Index: lib/t/00smoke.t
===================================================================
--- lib/t/00smoke.t (revision 2248)
+++ lib/t/00smoke.t (working copy)
@@ -7,7 +7,7 @@
ok(RT::Init, "Basic initialization and DB connectivity");
use File::Find;
-File::Find::find({wanted => \&wanted}, 'lib/');
-sub wanted { /^*\.pm\z/s && ok(require $_, "Requiring '$_'"); }
+File::Find::find({wanted => \&wanted, no_chdir => 1}, 'lib/');
+sub wanted { /^*\.pm\z/s && !/(GnuPG|SpamAssassin).pm$/ && ok(require $_, "Requiring '$_'"); }
On Mon, Feb 21, 2005 at 04:06:19PM -0500, Jesse Vincent wrote:
>
>
>
> On Mon, Feb 21, 2005 at 03:20:39PM -0500, Todd Chapman wrote:
> > Is there something simple I am missing?
> >
> > slah001:~/3.4.1 # make test
> no. make test does something weird with the auto-finding libraries. If
> make regression passes, you're set
More information about the Rt-devel
mailing list