Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/nolibc: fix EXPECT_NZ macro

The expect non-zero macro was incorrect and never used. Fix its
definition.

Fixes: 362aecb2d8cfa ("selftests/nolibc: add basic infrastructure to ease creation of nolibc tests")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://lore.kernel.org/r/20250731201225.323254-2-benjamin@sipsolutions.net
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

authored by

Benjamin Berg and committed by
Thomas Weißschuh
6d33ce36 4c2ef951

+2 -2
+2 -2
tools/testing/selftests/nolibc/nolibc-test.c
··· 196 196 } 197 197 198 198 199 - #define EXPECT_NZ(cond, expr, val) \ 200 - do { if (!(cond)) result(llen, SKIPPED); else ret += expect_nz(expr, llen; } while (0) 199 + #define EXPECT_NZ(cond, expr) \ 200 + do { if (!(cond)) result(llen, SKIPPED); else ret += expect_nz(expr, llen); } while (0) 201 201 202 202 static __attribute__((unused)) 203 203 int expect_nz(int expr, int llen)