geoff 2004/10/24 19:03:36
Modified: perl-framework/Apache-Test/lib/Apache TestConfigPHP.pm Log: remove html_ok() - it doesn't make sense for server-side tests Revision Changes Path 1.2 +0 -19 httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPHP.pm Index: TestConfigPHP.pm =================================================================== RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPHP.pm,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- TestConfigPHP.pm 23 Oct 2004 15:41:10 -0000 1.1 +++ TestConfigPHP.pm 25 Oct 2004 02:03:36 -0000 1.2 @@ -323,23 +323,4 @@ } } -function html_ok( $str, $name = "" ) { - $fname = tempnam( getenv("TMP"), 'lint-' ); - $fh = fopen( $fname, "w" ); - fwrite( $fh, $str ); - fclose( $fh ); - - $results = Array(); - $results = shell_exec( "weblint $fname" ); - unlink( $fname ); - - if ( $results ) { - $ok = fail( $name ); - diag( $results ); - } else { - $ok = pass( $name ); - } - return $ok; -} - ?>