From 8cda80898e589128b405330cfa84fff44a0c3dc2 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Wed, 5 Mar 2014 09:59:34 +0100 Subject: [PATCH] add test for issue #56 --- ci/test-issue-56.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 ci/test-issue-56.pl diff --git a/ci/test-issue-56.pl b/ci/test-issue-56.pl new file mode 100755 index 0000000..3f75408 --- /dev/null +++ b/ci/test-issue-56.pl @@ -0,0 +1,10 @@ +#!/usr/bin/perl -w + +# regression testing for github issue #56 + +use Test::Command tests => 3; + +my $cmd1 = Test::Command->new(cmd => "fping -t100 -p100 -c3 192.168.255.255"); +$cmd1->exit_is_num(1); +$cmd1->stdout_is_eq(""); +$cmd1->stderr_is_eq("\n192.168.255.255 : xmt/rcv/%loss = 3/0/100%\n");