From: Dimitri John Ledkov Date: Wed, 8 Nov 2017 19:04:55 +0000 (-0500) Subject: test-bpf: use /bin/ping path (#7276) X-Git-Tag: v236~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02ec6e04fdb047a354b6b3dc8c5f2b3f803e05ab;p=thirdparty%2Fsystemd.git test-bpf: use /bin/ping path (#7276) This path to ping is compatible with both debian-like and usr-merged distros. This keeps the test simple, and should thus pass everywhere. Fixes: #7267 --- diff --git a/src/test/test-bpf.c b/src/test/test-bpf.c index e2974cd9e43..5b9931753e7 100644 --- a/src/test/test-bpf.c +++ b/src/test/test-bpf.c @@ -109,8 +109,8 @@ int main(int argc, char *argv[]) { assert(cc->ip_address_deny->items_next); assert(!cc->ip_address_deny->items_next->items_next); - assert_se(config_parse_exec(u->id, "filename", 1, "Service", 1, "ExecStart", SERVICE_EXEC_START, "/usr/bin/ping -c 1 127.0.0.2 -W 5", SERVICE(u)->exec_command, u) == 0); - assert_se(config_parse_exec(u->id, "filename", 1, "Service", 1, "ExecStart", SERVICE_EXEC_START, "/usr/bin/ping -c 1 127.0.0.3 -W 5", SERVICE(u)->exec_command, u) == 0); + assert_se(config_parse_exec(u->id, "filename", 1, "Service", 1, "ExecStart", SERVICE_EXEC_START, "/bin/ping -c 1 127.0.0.2 -W 5", SERVICE(u)->exec_command, u) == 0); + assert_se(config_parse_exec(u->id, "filename", 1, "Service", 1, "ExecStart", SERVICE_EXEC_START, "/bin/ping -c 1 127.0.0.3 -W 5", SERVICE(u)->exec_command, u) == 0); assert_se(SERVICE(u)->exec_command[SERVICE_EXEC_START]); assert_se(SERVICE(u)->exec_command[SERVICE_EXEC_START]->command_next);