Thread (5 messages) 5 messages, 3 authors, 2021-12-08

Re: selftests/net/fcnal-test.sh: ipv6_ping test failed

flat view

From: David Ahern <hidden>
Date: 2021-12-08 03:54:47
Also in: linux-kselftest, lkml

On 12/7/21 8:50 PM, Zhou, Jie2X wrote:
hi,

  man ip, the output about exit value is like following.
  "Exit status is 0 if command was successful, and 1 if there is a syntax error.  If an error was reported by the kernel exit status is 2."
  Did the following COMMAND have syntax error? If not, should I still change the expected rc from 2 to 1?
strace of ping6 shows it is failing with '1'.

As for 'ip', it returns the exit code of the command run. iproute2 code,
lib/exec.c, cmd_exec().
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help