mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
selftests/nolibc: fix EXPECT_NZ macro
The expect non-zero macro was incorrect and never used. Fix its
definition.
Fixes: 362aecb2d8 ("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>
This commit is contained in:
parent
4c2ef951cf
commit
6d33ce3634
|
|
@ -196,8 +196,8 @@ int expect_zr(int expr, int llen)
|
|||
}
|
||||
|
||||
|
||||
#define EXPECT_NZ(cond, expr, val) \
|
||||
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_nz(expr, llen; } while (0)
|
||||
#define EXPECT_NZ(cond, expr) \
|
||||
do { if (!(cond)) result(llen, SKIPPED); else ret += expect_nz(expr, llen); } while (0)
|
||||
|
||||
static __attribute__((unused))
|
||||
int expect_nz(int expr, int llen)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user