[Jifty-commit] r5511 - jifty/trunk/lib/Jifty/Test/WWW

Jifty commits jifty-commit at lists.jifty.org
Mon Jun 16 08:40:51 EDT 2008


Author: ishigaki
Date: Mon Jun 16 08:40:51 2008
New Revision: 5511

Modified:
   jifty/trunk/lib/Jifty/Test/WWW/Selenium.pm

Log:
Jifty::Test::WWW::Selenium: let selenium tests skip on Win32; and setsid is not implemented there

Modified: jifty/trunk/lib/Jifty/Test/WWW/Selenium.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Test/WWW/Selenium.pm	(original)
+++ jifty/trunk/lib/Jifty/Test/WWW/Selenium.pm	Mon Jun 16 08:40:51 2008
@@ -41,6 +41,8 @@
     my $server = shift;
     my %args = @_;
 
+    $class->_skip_rest("live test doesn't work on Win32 at the moment");
+
     $ENV{JIFTY_OPENID_WHITELIST_HOST} = $ENV{SELENIUM_RC_TEST_AGAINST} || 'localhost';
 
     if ( $args{selenium_rc} ||= $ENV{SELENIUM_RC_SERVER} ) {
@@ -103,8 +105,10 @@
 	return ('localhost', 4444);
     }
     else {
-	require POSIX;
-	POSIX::setsid();
+        unless ($^O eq 'MSWin32') {
+            require POSIX;
+            POSIX::setsid();  # Win32 doesn't have this.
+        }
 	unless ($ENV{TEST_VERBOSE}) {
 	    close *STDERR;
 	    close *STDOUT;


More information about the Jifty-commit mailing list