Skip to contentSkip to conversation

test: event: Correct usage of IS_ENABLED() macro in test/common/event.c

PATCH In review Tom Rini 1 participant 2 messages Feb 26, 2025 – Mar 13, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 test: event: Correct usage of IS_ENABLED() macro in test/common/event.c

This file was using IS_ENABLED() to test for CONFIG flags but omitted the CONFIG_ prefix and so did not work as expected.

---
 test/common/event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/common/event.c +1 -1
index bfbbf019768e..e77e020b00bc 100644
@@ -91,7 +91,7 @@ static int test_event_probe(struct unit_test_state *uts)
 	struct test_state state;
 	struct udevice *dev;
 
-	if (!IS_ENABLED(SANDBOX))
+	if (!IS_ENABLED(CONFIG_SANDBOX))
 		return -EAGAIN;
 
 	state.val = 0;
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 4 lines · Tom Rini

This file was using IS_ENABLED() to test for CONFIG flags but omitted the CONFIG_ prefix and so did not work as expected.

Applied to u-boot/next, thanks!

[1/1] test: event: Correct usage of IS_ENABLED() macro in test/common/event.c

      commit: 5c2ad0799715e7c02aa98d946a04e526fc5802b0
Signature · 1 line
Tom