Skip to content

Commit

Permalink
fixed FreeBSD portability issues in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 2, 2011
1 parent e52714c commit e06d667
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,12 +1,13 @@
This file documents the revision history for Perl extension Mojolicious.

2.0 2011-10-02 00:00:00
2.0 2011-10-03 00:00:00
- Code name "Leaf Fluttering In Wind", this is a major release.
- Increased Perl version requirement to 5.10.1.
- Disabled some more tests on Windows with older Perl versions.
- Improved message parser performance slightly.
- Improved resolver tests.
- Fixed small formatting bug in Mojo::Headers.
- Fixed Windows and FreeBSD portability issues in tests.

1.99 2011-09-29 00:00:00
- Deprecated direct hash access to the flash in
Expand Down
7 changes: 5 additions & 2 deletions t/mojolicious/websocket_lite_app.t
@@ -1,6 +1,8 @@
#!/usr/bin/env perl
use Mojo::Base -strict;

# "Oh, dear. She’s stuck in an infinite loop and he’s an idiot.
# Well, that’s love for you."
use utf8;

# Disable Bonjour, IPv6 and libev
Expand All @@ -9,9 +11,10 @@ BEGIN {
$ENV{MOJO_IOWATCHER} = 'Mojo::IOWatcher';
}

# "Oh, dear. She’s stuck in an infinite loop and he’s an idiot.
# Well, that’s love for you."
# FreeBSD 8.0 and 8.1 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 on Windows!'
if ($^O eq 'MSWin32' || $^O =~ /cygwin/) && $] < 5.014;
plan tests => 78;
Expand Down

0 comments on commit e06d667

Please sign in to comment.