mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
test: Allow tests to run on any board
Due to a recent change, tests are limited to running on sandbox only.
Correct this so that any architecture can run them.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Sean Anderson <seanga2@gmail.com>
Fixes: c79705ea93 ("test: Move dm_test_init() into test-main.c")
Tested-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
@@ -124,4 +124,13 @@ enum {
|
||||
*/
|
||||
struct udevice *testbus_get_clear_removed(void);
|
||||
|
||||
static inline void arch_reset_for_test(void)
|
||||
{
|
||||
#ifdef CONFIG_SANDBOX
|
||||
#include <asm/state.h>
|
||||
|
||||
state_reset_for_test(state_get_current());
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif /* __TEST_TEST_H */
|
||||
|
||||
Reference in New Issue
Block a user