diff --git a/t/lib/WebGUI/Test.pm b/t/lib/WebGUI/Test.pm index 16f59a5a1..f1d6629e3 100644 --- a/t/lib/WebGUI/Test.pm +++ b/t/lib/WebGUI/Test.pm @@ -5,6 +5,7 @@ use warnings; our ( $SESSION, $WEBGUI_ROOT, $CONFIG_FILE, $WEBGUI_LIB ); +use Config qw[]; use IO::Handle qw[]; use File::Spec qw[]; @@ -50,7 +51,7 @@ BEGIN { # http://thread.gmane.org/gmane.comp.apache.apreq/3378 # http://article.gmane.org/gmane.comp.apache.apreq/3388 - unless ( $^O ne 'darwin' ) { + if ( $^O eq 'darwin' && $Config::Config{osvers} < 8 ) { require Class::Null; require IO::File;