Fix ping_test to deal with EINVAL return codes

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>