Skip to content

Commit

Permalink
enabled many tests with portability problems again
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 2, 2011
1 parent 2894096 commit 5eb5d54
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 27 deletions.
1 change: 0 additions & 1 deletion Changes
Expand Up @@ -7,7 +7,6 @@ This file documents the revision history for Perl extension Mojolicious.
- Improved message parser performance slightly.
- Improved resolver tests.
- Fixed small formatting bug in Mojo::Headers.
- Fixed FreeBSD and Perl 5.12.3 portability issues in tests.

1.99 2011-09-29 00:00:00
- Deprecated direct hash access to the flash in
Expand Down
2 changes: 0 additions & 2 deletions t/mojo/ioloop_tls.t
Expand Up @@ -34,8 +34,6 @@ plan skip_all => 'set TEST_TLS to enable this test (developer only!)'
unless $ENV{TEST_TLS};
plan skip_all => 'IO::Socket::SSL 1.43 required for this test!'
unless Mojo::IOLoop::Server::TLS;
plan skip_all => 'Windows is too fragile for this test!'
if Mojo::IOLoop::Stream::WINDOWS;
plan tests => 16;

use Mojo::IOLoop;
Expand Down
5 changes: 1 addition & 4 deletions t/mojo/user_agent.t
Expand Up @@ -7,10 +7,7 @@ BEGIN {
$ENV{MOJO_IOWATCHER} = 'Mojo::IOWatcher';
}

use Test::More;
plan skip_all => 'Windows is too fragile for this test!'
if $^O eq 'MSWin32' || $^O =~ /cygwin/;
plan tests => 76;
use Test::More tests => 76;

use_ok 'Mojo::UserAgent';

Expand Down
7 changes: 1 addition & 6 deletions t/mojo/websocket.t
Expand Up @@ -7,12 +7,7 @@ BEGIN {
$ENV{MOJO_IOWATCHER} = 'Mojo::IOWatcher';
}

# FreeBSD 8.0/8.1 and Perl 5.12.3 are known to cause problems
use Test::More;
plan skip_all => 'This test does not work on some older versions of FreeBSD!'
if $^O =~ /freebsd/;
plan skip_all => 'Perl 5.14 required for this test!' if $] < 5.014;
plan tests => 42;
use Test::More tests => 42;

# "I can't believe it! Reading and writing actually paid off!"
use IO::Socket::INET;
Expand Down
2 changes: 0 additions & 2 deletions t/mojo/websocket_proxy_tls.t
Expand Up @@ -15,8 +15,6 @@ plan skip_all => 'set TEST_TLS to enable this test (developer only!)'
unless $ENV{TEST_TLS};
plan skip_all => 'IO::Socket::SSL 1.43 required for this test!'
unless Mojo::IOLoop::Server::TLS;
plan skip_all => 'Windows is too fragile for this test!'
if Mojo::IOLoop::Stream::WINDOWS;
plan tests => 15;

use Mojo::IOLoop;
Expand Down
2 changes: 0 additions & 2 deletions t/mojolicious/tls_lite_app.t
Expand Up @@ -14,8 +14,6 @@ plan skip_all => 'set TEST_TLS to enable this test (developer only!)'
unless $ENV{TEST_TLS};
plan skip_all => 'IO::Socket::SSL 1.43 required for this test!'
unless Mojo::IOLoop::Server::TLS;
plan skip_all => 'Windows is too fragile for this test!'
if Mojo::IOLoop::Stream::WINDOWS;
plan tests => 18;

# "Look at these low, low prices on famous brand-name electronics!
Expand Down
5 changes: 1 addition & 4 deletions t/mojolicious/upload_lite_app.t
Expand Up @@ -9,10 +9,7 @@ BEGIN {
$ENV{MOJO_IOWATCHER} = 'Mojo::IOWatcher';
}

use Test::More;
plan skip_all => 'Windows is too fragile for this test!'
if $^O eq 'MSWin32' || $^O =~ /cygwin/;
plan tests => 31;
use Test::More tests => 31;

# "Um, Leela,
# Armondo and I are going to the back seat of his car for coffee."
Expand Down
7 changes: 1 addition & 6 deletions t/mojolicious/websocket_lite_app.t
Expand Up @@ -11,12 +11,7 @@ BEGIN {
$ENV{MOJO_IOWATCHER} = 'Mojo::IOWatcher';
}

# FreeBSD 8.0/8.1 and Perl 5.12.3 are known to cause problems
use Test::More;
plan skip_all => 'This test does not work on some older versions of FreeBSD!'
if $^O =~ /freebsd/;
plan skip_all => 'Perl 5.14 required for this test!' if $] < 5.014;
plan tests => 78;
use Test::More tests => 78;

# "Your mistletoe is no match for my *tow* missile."
use Mojo::ByteStream 'b';
Expand Down

0 comments on commit 5eb5d54

Please sign in to comment.