Don't test ping on any platform higher than windows xp
parent
f19d8cfd99
commit
70a8c35141
|
@ -1,8 +1,15 @@
|
||||||
USING: continuations destructors io.sockets kernel ping
|
USING: continuations destructors io.sockets kernel math.order
|
||||||
tools.test ;
|
ping system system-info tools.test ;
|
||||||
IN: ping.tests
|
IN: ping.tests
|
||||||
|
|
||||||
[ ] [ "localhost" ping drop ] unit-test
|
! { 5 1 } is xp
|
||||||
[ t ] [ "localhost" alive? ] unit-test
|
: test-ping? ( -- ? )
|
||||||
[ t ] [ "127.0.0.1" alive? ] unit-test
|
os windows?
|
||||||
[ f ] [ "0.0.0.0" alive? ] unit-test
|
os-version { 5 1 } after? and not ;
|
||||||
|
|
||||||
|
test-ping? [
|
||||||
|
[ ] [ "localhost" ping drop ] unit-test
|
||||||
|
[ t ] [ "localhost" alive? ] unit-test
|
||||||
|
[ t ] [ "127.0.0.1" alive? ] unit-test
|
||||||
|
[ f ] [ "0.0.0.0" alive? ] unit-test
|
||||||
|
] when
|
Loading…
Reference in New Issue