On Mon, Nov 30, 2026 at 01:49:11PM -0800, Stephen Hemminger wrote:
> The eal_fs test needs /proc/self/fd to find the name of the
> temporary file it creates. FreeBSD does not have it, so the test
> returned early from inside test_parse_sysfs_value(), which clang
> reports as unreachable code for the rest of the function.
> 
> Worse, returning zero reported the test as passing when it had not
> run at all.
> 
> Build the skip stub on FreeBSD as well as Windows and return
> TEST_SKIPPED, which is what the rest of the file already does.
> This also removes the unreachable body rather than hiding it.
> 
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---
>  app/test/test_eal_fs.c | 12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)
> 
Acked-by: Bruce Richardson <[email protected]>

Reply via email to