change method call to subroutine call; Sel's docs are WRONG here
[catagits/Test-WWW-Selenium-Catalyst.git] / lib / Test / WWW / Selenium / Catalyst.pm
index 509c22c..7226019 100644 (file)
@@ -40,12 +40,6 @@ on.  I can live with that, but I need your help to get to that stage!
 Please report any problems to RT, the Catalyst mailing list, or the
 #catalyst IRC channel on L<irc.perl.org>.  Thanks!
 
-=head2 KNOWN ISSUES
-
-Sometimes the Selenium server doesn't die after the tests when running
-under C<make test>.  C<prove> works fine, so until I (or you!) figure
-out the problem, use C<prove>.
-
 =head1 SYNOPSIS
 
     use Test::WWW::Selenium::Catalyst 'MyApp';
@@ -57,7 +51,7 @@ out the problem, use C<prove>.
 
 This module starts the SeleniumRC server and your Catalyst app so that
 you can test it with SeleniumRC.  Once you've called
-C<Test::WWW::Selenium::Catalyst->start>, everything is just like
+C<< Test::WWW::Selenium::Catalyst->start >>, everything is just like
 L<Test::WWW::Selenium|Test::WWW:Selenium>.
 
 =head1 FUNCTIONS
@@ -86,7 +80,7 @@ sub _start_server {
     my $pid;
     if(0 == ($pid = fork())){
        local $SIG{TERM} = sub {
-           diag("Selenium server $$ going down (TERM)");
+           diag("Selenium server $$ going down (TERM)") if $DEBUG;
            exit 0;
        };
        
@@ -95,11 +89,11 @@ sub _start_server {
        if(!$DEBUG){
            close *STDERR;
            close *STDOUT;
-           close *STDIN;
+           #close *STDIN;
        }
        
        diag("Selenium running in $$") if $DEBUG;
-        Alien::SeleniumRC->start()
+        Alien::SeleniumRC::start()
            or croak "Can't start Selenium server";
        diag("Selenium server $$ going down") if $DEBUG;
        exit 1;