diff options
Diffstat (limited to 'zephyr/test/drivers/host_cmd/src/pd_chip_info.c')
-rw-r--r-- | zephyr/test/drivers/host_cmd/src/pd_chip_info.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zephyr/test/drivers/host_cmd/src/pd_chip_info.c b/zephyr/test/drivers/host_cmd/src/pd_chip_info.c index c04e74810a..95e2339899 100644 --- a/zephyr/test/drivers/host_cmd/src/pd_chip_info.c +++ b/zephyr/test/drivers/host_cmd/src/pd_chip_info.c @@ -3,15 +3,15 @@ * found in the LICENSE file. */ +#include <zephyr/shell/shell.h> +#include <zephyr/ztest.h> + #include "console.h" #include "ec_commands.h" #include "test/drivers/stubs.h" #include "test/drivers/test_state.h" #include "test/drivers/utils.h" -#include <zephyr/shell/shell.h> -#include <zephyr/ztest.h> - #define TEST_PORT USBC_PORT_C0 #define BAD_PORT 65 @@ -20,7 +20,7 @@ static enum ec_status run_pd_chip_info(int port, { struct ec_params_pd_chip_info params = { .port = port, .live = true }; struct host_cmd_handler_args args = - BUILD_HOST_COMMAND(EC_CMD_PD_CHIP_INFO, 1, *resp, params); + BUILD_HOST_COMMAND(EC_CMD_PD_CHIP_INFO, 1, resp, params); return host_command_process(&args); } @@ -41,7 +41,7 @@ ZTEST_USER(host_cmd_pd_chip_info, test_bad_index) { struct ec_response_pd_chip_info_v1 response; - zassert_true(board_get_usb_pd_port_count() < BAD_PORT, + zassume_true(board_get_usb_pd_port_count() < BAD_PORT, "Intended bad port exists"); zassert_equal(run_pd_chip_info(BAD_PORT, &response), EC_RES_INVALID_PARAM, @@ -53,7 +53,7 @@ static void host_cmd_pd_chip_info_begin(void *data) ARG_UNUSED(data); /* Assume we have at least one USB-C port */ - zassert_true(board_get_usb_pd_port_count() > 0, + zassume_true(board_get_usb_pd_port_count() > 0, "Insufficient TCPCs found"); /* Set the system into S0, since the AP would drive these commands */ |