mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00
test: event: Only run test_event_probe() on sandbox
This needs test devices which are only present on sandbox. Add a check for this and skip just this test if running on a real board. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
078c6e2f8a
commit
14f0cc49df
1 changed files with 3 additions and 0 deletions
|
@ -92,6 +92,9 @@ static int test_event_probe(struct unit_test_state *uts)
|
|||
struct test_state state;
|
||||
struct udevice *dev;
|
||||
|
||||
if (!IS_ENABLED(SANDBOX))
|
||||
return -EAGAIN;
|
||||
|
||||
state.val = 0;
|
||||
ut_assertok(event_register("pre", EVT_DM_PRE_PROBE, h_probe, &state));
|
||||
ut_assertok(event_register("post", EVT_DM_POST_PROBE, h_probe, &state));
|
||||
|
|
Loading…
Add table
Reference in a new issue