stas 2003/11/22 13:37:14
Modified: t/modules apache_status.t cgi.t cgiupload.t Log: mod_perl 2.0 needs CGI.pm 2.93 or higher, older versions have all kind of problems Revision Changes Path 1.3 +3 -2 modperl-2.0/t/modules/apache_status.t Index: apache_status.t =================================================================== RCS file: /home/cvs/modperl-2.0/t/modules/apache_status.t,v retrieving revision 1.2 retrieving revision 1.3 diff -u -u -r1.2 -r1.3 --- apache_status.t 21 Nov 2003 23:13:20 -0000 1.2 +++ apache_status.t 22 Nov 2003 21:37:14 -0000 1.3 @@ -11,8 +11,9 @@ symdump inc inh_tree sig); plan tests => @opts + 1, have - { "CGI.pm or Apache::Request is needed" => - !!(eval { require CGI } || eval { require Apache::Request })}; + { "CGI.pm (2.93 or higher) or Apache::Request is needed" => + !!(eval { require CGI && $CGI::VERSION >= 2.93 } || + eval { require Apache::Request })}; { my $url = "$base_url"; 1.11 +1 -1 modperl-2.0/t/modules/cgi.t Index: cgi.t =================================================================== RCS file: /home/cvs/modperl-2.0/t/modules/cgi.t,v retrieving revision 1.10 retrieving revision 1.11 diff -u -u -r1.10 -r1.11 --- cgi.t 21 Nov 2003 23:15:46 -0000 1.10 +++ cgi.t 22 Nov 2003 21:37:14 -0000 1.11 @@ -13,7 +13,7 @@ my $tests = 4; $tests += 1 if HAVE_LWP; -plan tests => $tests, have have_module('CGI'), +plan tests => $tests, have have_min_module_version('CGI', 2.93), {"MP_COMPAT_1X is disabled" => $build->{MP_COMPAT_1X}}; my $module = 'TestModules::cgi'; 1.9 +1 -1 modperl-2.0/t/modules/cgiupload.t Index: cgiupload.t =================================================================== RCS file: /home/cvs/modperl-2.0/t/modules/cgiupload.t,v retrieving revision 1.8 retrieving revision 1.9 diff -u -u -r1.8 -r1.9 --- cgiupload.t 21 Nov 2003 23:15:46 -0000 1.8 +++ cgiupload.t 22 Nov 2003 21:37:14 -0000 1.9 @@ -7,7 +7,7 @@ use Apache::Build (); my $build = Apache::Build->build_config; -plan tests => 2, have have_lwp(), have_module('CGI'), +plan tests => 2, have have_lwp(), have have_min_module_version('CGI', 2.93), {"MP_COMPAT_1X is disabled" => $build->{MP_COMPAT_1X}}; my $location = "/TestModules__cgiupload";