[LTP] [PATCH 3/3] network/tst_net.sh: extend the pattern in tst_ping_opt_unsupported()
Alexey Kodanev
aleksei.kodanev@bell-sw.com
Fri Aug 20 13:28:32 CEST 2021
Hi Petr,
On 20.08.2021 13:46, Petr Vorel wrote:
> Hi Alexey,
>
>> - ping $@ 2>&1 | grep -q "invalid option"
>> + ping $@ 2>&1 | grep -qE "(invalid|unrecognized) option"
>
> Which implementation needs it? Both ping from iputils and busybox report
> "invalid option".
>
It's busybox/ping that is using musl libc getopt():
misc/getopt.c: __getopt_msg(argv[0], ": unrecognized option: ", optchar, k);
More information about the ltp
mailing list