]> git.gsnw.org Git - fping.git/commitdiff
fix test
authorDavid Schweikert <david@schweikert.ch>
Mon, 21 Nov 2016 21:42:51 +0000 (22:42 +0100)
committerDavid Schweikert <david@schweikert.ch>
Mon, 21 Nov 2016 21:46:36 +0000 (22:46 +0100)
ci/test-11-nopriv.pl

index 87802fe6bbd2d1bdde745d29d4f000d0168b2844..bd2065fda27747d13a752b25fb2bcd8d3ba5a4c8 100755 (executable)
@@ -20,7 +20,7 @@ system("cp $fping6_bin /tmp/fping6.copy; chmod +x /tmp/fping6.copy");
 my $cmd = Test::Command->new(cmd => "/tmp/fping.copy 127.0.0.1");
 $cmd->exit_is_num(4);
 $cmd->stdout_is_eq("");
-$cmd->stderr_like(qr{\(null\): can't create socket \(must run as root\?\) : .*\n});
+$cmd->stderr_like(qr{: can't create socket \(must run as root\?\) : .*\n});
 }
 
 # fping6
@@ -28,5 +28,5 @@ $cmd->stderr_like(qr{\(null\): can't create socket \(must run as root\?\) : .*\n
 my $cmd = Test::Command->new(cmd => "/tmp/fping6.copy ::1");
 $cmd->exit_is_num(4);
 $cmd->stdout_is_eq("");
-$cmd->stderr_like(qr{\(null\): can't create raw socket \(must run as root\?\) : .*\n});
+$cmd->stderr_like(qr{: can't create raw socket \(must run as root\?\) : .*\n});
 }