diff options
Diffstat (limited to 'zephyr/test/drivers/default/src/tcpci.c')
-rw-r--r-- | zephyr/test/drivers/default/src/tcpci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zephyr/test/drivers/default/src/tcpci.c b/zephyr/test/drivers/default/src/tcpci.c index f648b43a96..90d5d3fb65 100644 --- a/zephyr/test/drivers/default/src/tcpci.c +++ b/zephyr/test/drivers/default/src/tcpci.c @@ -200,6 +200,11 @@ ZTEST(tcpci, test_generic_tcpci_get_chip_info) emul_tcpci_generic_get_i2c_common_data(emul); test_tcpci_get_chip_info(emul, common_data, USBC_PORT_C0); + + zassert_equal(EC_ERROR_INVAL, + tcpci_get_chip_info(board_get_usb_pd_port_count(), false, + NULL), + "get_chip_info should return INVAL for an invalid port"); } /** Test TCPCI enter low power mode */ |