From: Steven Noonan Date: Thu, 27 Feb 2020 21:51:50 +0000 (-0800) Subject: test-05: don't assume -D timestamp is based on UNIX epoch X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad451e7a15a6fd2f7607a3b7857691b1e9a5add7;p=fping.git test-05: don't assume -D timestamp is based on UNIX epoch If CLOCKID != CLOCK_REALTIME, it probably will not have anything to do with the UNIX epoch, so it could be smaller than 10 digits. Signed-off-by: Steven Noonan --- diff --git a/ci/test-05-options-c-e.pl b/ci/test-05-options-c-e.pl index 8bc03d0..536f3ad 100755 --- a/ci/test-05-options-c-e.pl +++ b/ci/test-05-options-c-e.pl @@ -41,8 +41,8 @@ $cmd->stderr_like(qr{localhost : \d\.\d+ \d\.\d+ { my $cmd = Test::Command->new(cmd => "fping -D -c 2 -p 100 127.0.0.1"); $cmd->exit_is_num(0); -$cmd->stdout_like(qr{\[\d{10}\.\d+\] 127\.0\.0\.1 : \[0\], 84 bytes, \d\.\d+ ms \(\d\.\d+ avg, 0% loss\) -\[\d{10}\.\d+\] 127\.0\.0\.1 : \[1\], 84 bytes, \d\.\d+ ms \(\d\.\d+ avg, 0% loss\) +$cmd->stdout_like(qr{\[\d+\.\d+\] 127\.0\.0\.1 : \[0\], 84 bytes, \d\.\d+ ms \(\d\.\d+ avg, 0% loss\) +\[\d+\.\d+\] 127\.0\.0\.1 : \[1\], 84 bytes, \d\.\d+ ms \(\d\.\d+ avg, 0% loss\) }); $cmd->stderr_like(qr{127\.0\.0\.1 : xmt/rcv/%loss = 2/2/0%, min/avg/max = \d\.\d+/\d\.\d+/\d\.\d+