Fix ping(8) usage in funcs/tst.system.d so that the test actually completes.
MFC after: 1 week
This commit is contained in:
parent
41aeaf2a30
commit
3f05af05ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280836
@ -35,11 +35,11 @@ BEGIN
|
|||||||
this->b = -2;
|
this->b = -2;
|
||||||
|
|
||||||
system("echo %s %d %d", "foo", this->a, this->b);
|
system("echo %s %d %d", "foo", this->a, this->b);
|
||||||
system("ping localhost");
|
system("ping -q -c 1 localhost 2>/dev/null | grep -v '^round-trip '");
|
||||||
system("echo %d", ++this->a);
|
system("echo %d", ++this->a);
|
||||||
system("ping localhost");
|
system("ping -q -c 1 localhost 2>/dev/null | grep -v '^round-trip '");
|
||||||
system("echo %d", ++this->a);
|
system("echo %d", ++this->a);
|
||||||
system("ping localhost");
|
system("ping -q -c 1 localhost 2>/dev/null | grep -v '^round-trip '");
|
||||||
system("echo %d", ++this->a);
|
system("echo %d", ++this->a);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,17 @@
|
|||||||
foo 9 -2
|
foo 9 -2
|
||||||
localhost is alive
|
PING localhost (127.0.0.1): 56 data bytes
|
||||||
|
|
||||||
|
--- localhost ping statistics ---
|
||||||
|
1 packets transmitted, 1 packets received, 0.0% packet loss
|
||||||
10
|
10
|
||||||
localhost is alive
|
PING localhost (127.0.0.1): 56 data bytes
|
||||||
|
|
||||||
|
--- localhost ping statistics ---
|
||||||
|
1 packets transmitted, 1 packets received, 0.0% packet loss
|
||||||
11
|
11
|
||||||
localhost is alive
|
PING localhost (127.0.0.1): 56 data bytes
|
||||||
|
|
||||||
|
--- localhost ping statistics ---
|
||||||
|
1 packets transmitted, 1 packets received, 0.0% packet loss
|
||||||
12
|
12
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user