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]>
- [PATCH 26/45] common/cnxk: remove unused roc functions Stephen Hemminger
- [PATCH 23/45] crypto/cnxk: do not export internal Rx inj... Stephen Hemminger
- [PATCH 45/45] common/cnxk: make internal roc functions s... Stephen Hemminger
- [PATCH 35/45] bus/dpaa: remove unused QMan and BMan func... Stephen Hemminger
- [PATCH v2 00/38] enable unreachable code detection Stephen Hemminger
- [PATCH v2 01/38] net/mlx4: fix unreachable code war... Stephen Hemminger
- [PATCH v2 02/38] net/mlx5: fix unreachable code war... Stephen Hemminger
- [PATCH v2 03/38] examples/ipsec-secgw: remove dead ... Stephen Hemminger
- [PATCH v2 04/38] eventdev: fix vector adapter insta... Stephen Hemminger
- [PATCH v2 05/38] test/eal: skip filesystem test on ... Stephen Hemminger
- Re: [PATCH v2 05/38] test/eal: skip filesystem ... Bruce Richardson
- [PATCH v2 06/38] eal: silence unreachable code in v... Stephen Hemminger
- [PATCH v2 07/38] net/dpaa2: remove debug abort in f... Stephen Hemminger
- [PATCH v2 08/38] app/testpmd: fix unreachable VF tr... Stephen Hemminger
- [PATCH v2 09/38] examples/eventdev_pipeline: remove... Stephen Hemminger
- [PATCH v2 10/38] examples/skeleton: handle SIGINT a... Stephen Hemminger
- Re: [PATCH v2 10/38] examples/skeleton: handle ... Bruce Richardson
- [PATCH v2 11/38] examples/rxtx_callbacks: handle SI... Stephen Hemminger
- [PATCH v2 12/38] examples/service_cores: handle SIG... Stephen Hemminger
- [PATCH v2 13/38] examples/timer: handle SIGINT and ... Stephen Hemminger
- [PATCH v2 14/38] examples/multi_process: handle SIG... Stephen Hemminger

