Skip to content

Commit 6d33ce3

Browse files
benzeat-8ch
authored andcommitted
selftests/nolibc: fix EXPECT_NZ macro
The expect non-zero macro was incorrect and never used. Fix its definition. Fixes: 362aecb ("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>
1 parent 4c2ef95 commit 6d33ce3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/selftests/nolibc/nolibc-test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ int expect_zr(int expr, int llen)
196196
}
197197

198198

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)
201201

202202
static __attribute__((unused))
203203
int expect_nz(int expr, int llen)

0 commit comments

Comments
 (0)