]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/httpd-unix.t
address: remove Address::from_name
[public-inbox.git] / t / httpd-unix.t
index 13df676b5fcf361a60493acfbf6aa9b440981ea2..16f7bdd2e9a9bac5899e552c1c02e38db1a56c65 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 use Test::More;
 
 foreach my $mod (qw(Plack::Util Plack::Request Plack::Builder Danga::Socket
-                       HTTP::Parser::XS HTTP::Date HTTP::Status)) {
+                       HTTP::Date HTTP::Status)) {
        eval "require $mod";
        plan skip_all => "$mod missing for httpd-unix.t" if $@;
 }
@@ -103,6 +103,7 @@ SKIP: {
 
        ok(-f "$tmpdir/pid", 'pid file written');
        open my $fh, '<', "$tmpdir/pid" or die "open failed: $!";
+       local $/ = "\n";
        my $rpid = <$fh>;
        chomp $rpid;
        like($rpid, qr/\A\d+\z/s, 'pid file looks like a pid');