diff options
Diffstat (limited to 'zephyr/test/drivers/default/src/lid_switch.c')
-rw-r--r-- | zephyr/test/drivers/default/src/lid_switch.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/zephyr/test/drivers/default/src/lid_switch.c b/zephyr/test/drivers/default/src/lid_switch.c index b5da1f6608..2fe7daa85a 100644 --- a/zephyr/test/drivers/default/src/lid_switch.c +++ b/zephyr/test/drivers/default/src/lid_switch.c @@ -3,18 +3,19 @@ * found in the LICENSE file. */ -#include <zephyr/ztest.h> +#include "ec_commands.h" +#include "host_command.h" +#include "test/drivers/test_state.h" +#include "test/drivers/utils.h" + #include <zephyr/drivers/emul.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/gpio/gpio_emul.h> -#include <lid_switch.h> #include <zephyr/shell/shell_dummy.h> -#include <console.h> +#include <zephyr/ztest.h> -#include "test/drivers/test_state.h" -#include "test/drivers/utils.h" -#include "ec_commands.h" -#include "host_command.h" +#include <console.h> +#include <lid_switch.h> #define LID_GPIO_PATH DT_PATH(named_gpios, lid_open_ec) #define LID_GPIO_PIN DT_GPIO_PIN(LID_GPIO_PATH, gpios) @@ -49,8 +50,8 @@ static void *lid_switch_setup(void) static void lid_switch_before(void *unused) { /* Make sure that interrupt fire at the next lid open/close */ - zassume_ok(emul_lid_close()); - zassume_ok(emul_lid_open()); + zassert_ok(emul_lid_close()); + zassert_ok(emul_lid_open()); k_sleep(K_MSEC(100)); } |