lkml.org 
[lkml]   [2021]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: selftests/net/fcnal-test.sh: ipv6_ping test failed
From
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().

\
 
 \ /
  Last update: 2021-12-08 04:55    [W:0.047 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site