summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/default/src/espi.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/test/drivers/default/src/espi.c')
-rw-r--r--zephyr/test/drivers/default/src/espi.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/zephyr/test/drivers/default/src/espi.c b/zephyr/test/drivers/default/src/espi.c
index ac6c93f3fc..e526980ef1 100644
--- a/zephyr/test/drivers/default/src/espi.c
+++ b/zephyr/test/drivers/default/src/espi.c
@@ -3,11 +3,6 @@
* found in the LICENSE file.
*/
-#include <string.h>
-#include <zephyr/fff.h>
-#include <zephyr/kernel.h>
-#include <zephyr/ztest.h>
-
#include "ec_commands.h"
#include "gpio.h"
#include "host_command.h"
@@ -16,6 +11,12 @@
#include "test/drivers/test_state.h"
#include "test/drivers/utils.h"
+#include <string.h>
+
+#include <zephyr/fff.h>
+#include <zephyr/kernel.h>
+#include <zephyr/ztest.h>
+
#define PORT 0
#define AC_OK_OD_GPIO_NAME "acok_od"
@@ -214,7 +215,7 @@ ZTEST_USER(espi, test_host_command_gpio_set)
BUILD_HOST_COMMAND_PARAMS(EC_CMD_GPIO_SET, 0, p);
/* Force value to 1 to see change */
- zassume_ok(gpio_pin_set_dt(gp, 1), NULL);
+ zassert_ok(gpio_pin_set_dt(gp, 1), NULL);
zassert_ok(host_command_process(&args), NULL);
zassert_equal(gpio_pin_get_dt(gp), p.val, NULL);