On Thu Dec 22 09:52:04 2016, PEVANS wrote:
Show quoted text> The specific failing about linefeeds is nothing Solaris-specific, the
> test itself is broken:
Attached patch fixes this one.
I might still look into why Solaris takes the err branch though.
--
Paul Evans
=== modified file 't/50resolver.t'
--- t/50resolver.t 2016-04-04 15:45:59 +0000
+++ t/50resolver.t 2016-12-22 15:00:41 +0000
@@ -149,7 +149,7 @@
if( $localhost_err ) {
is( $result->[0], "error", 'getaddrinfo_array - error' );
- is_deeply( $result->[1], "$localhost_err\n", 'getaddrinfo_array - error message' );
+ is_deeply( $result->[1], "$localhost_err", 'getaddrinfo_array - error message' );
}
else {
is( $result->[0], "resolved", 'getaddrinfo_array - resolved' );
@@ -175,7 +175,7 @@
if( $localhost_err ) {
is( $result->[0], "error", 'getaddrinfo_hash - error' );
- is_deeply( $result->[1], "$localhost_err\n", 'getaddrinfo_hash - error message' );
+ is_deeply( $result->[1], "$localhost_err", 'getaddrinfo_hash - error message' );
}
else {
is( $result->[0], "resolved", 'getaddrinfo_hash - resolved' );
@@ -202,7 +202,7 @@
if( $localhost_err ) {
is( $result->[0], "error", '$resolver->getaddrinfo - error' );
- is_deeply( $result->[1], "$localhost_err\n", '$resolver->getaddrinfo - error message' );
+ is_deeply( $result->[1], "$localhost_err", '$resolver->getaddrinfo - error message' );
}
else {
is( $result->[0], "resolved", '$resolver->getaddrinfo - resolved' );
@@ -226,7 +226,7 @@
wait_for { $future->is_ready };
if( $localhost_err ) {
- is( scalar $future->failure, "$localhost_err\n", '$resolver->getaddrinfo - error message' );
+ is( scalar $future->failure, "$localhost_err", '$resolver->getaddrinfo - error message' );
is( ( $future->failure )[1], "resolve", '->failure [1]' );
is( ( $future->failure )[2], "getaddrinfo", '->failure [2]' );
}
@@ -273,7 +273,7 @@
if( $passive_err ) {
is( $result->[0], "error", '$resolver->getaddrinfo passive - error synchronously' );
- is_deeply( $result->[1], "$passive_err\n", '$resolver->getaddrinfo passive - error message' );
+ is_deeply( $result->[1], "$passive_err", '$resolver->getaddrinfo passive - error message' );
}
else {
is( $result->[0], "resolved", '$resolver->getaddrinfo passive - resolved synchronously' );
@@ -342,7 +342,7 @@
if( $testerr ) {
is( $result->[0], "error", '$resolver->getnameinfo - error' );
- is_deeply( $result->[1], "$testerr\n", '$resolver->getnameinfo - error message' );
+ is_deeply( $result->[1], "$testerr", '$resolver->getnameinfo - error message' );
}
else {
is( $result->[0], "resolved", '$resolver->getnameinfo - resolved' );
@@ -356,7 +356,7 @@
);
if( $testerr ) {
- is( scalar $future->failure, "$testerr\n", '$resolver->getnameinfo - error message from future' );
+ is( scalar $future->failure, "$testerr", '$resolver->getnameinfo - error message from future' );
is( ( $future->failure )[1], "resolve", '->failure [1]' );
is( ( $future->failure )[2], "getnameinfo", '->failure [2]' );
}