summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Massey <aaronmassey@google.com>2022-04-20 16:26:31 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-04-27 16:05:12 +0000
commitb2a94a15bcab83f9079799c2c986ef3772afa7f7 (patch)
treebf226a4e7b6c62bac61ab1c5ef820314218be0da
parent0dddf86d1bdda977655e28690fe4bbad91f77980 (diff)
downloadchrome-ec-b2a94a15bcab83f9079799c2c986ef3772afa7f7.tar.gz
zephyr: attach_src_snk test correct assumes
Several mistaken zassume calls were being made that were supposed to be zasserts. Correct these to zassert. BRANCH=none BUG=None TEST=zmake test test-drivers Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: Idd0d99e00de11752550bd0c752d0879635957003 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3598174 Reviewed-by: Al Semjonovs <asemjonovs@google.com> Commit-Queue: Al Semjonovs <asemjonovs@google.com>
-rw-r--r--zephyr/test/drivers/src/integration/usbc/usb_attach_src_snk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/zephyr/test/drivers/src/integration/usbc/usb_attach_src_snk.c b/zephyr/test/drivers/src/integration/usbc/usb_attach_src_snk.c
index b6fe9a5c31..f45201650d 100644
--- a/zephyr/test/drivers/src/integration/usbc/usb_attach_src_snk.c
+++ b/zephyr/test/drivers/src/integration/usbc/usb_attach_src_snk.c
@@ -334,7 +334,7 @@ ZTEST_F(integration_usb_attach_src_then_snk, verify_src_port_pd_info)
"Expected Charging at VBUS %dmV, but PD reports %dmV",
DEFAULT_VBUS_MV, response.meas.voltage_now);
- zassume_equal(response.meas.current_max, DEFAULT_VBUS_SRC_PORT_MA,
+ zassert_equal(response.meas.current_max, DEFAULT_VBUS_SRC_PORT_MA,
"Charging at VBUS max %dmA, but PD reports %dmA",
DEFAULT_VBUS_SRC_PORT_MA, response.meas.current_max);
@@ -405,7 +405,7 @@ ZTEST_F(integration_usb_attach_snk_then_src, verify_src_port_pd_info)
"Expected Charging at VBUS %dmV, but PD reports %dmV",
DEFAULT_VBUS_MV, response.meas.voltage_now);
- zassume_equal(response.meas.current_max, DEFAULT_VBUS_SRC_PORT_MA,
+ zassert_equal(response.meas.current_max, DEFAULT_VBUS_SRC_PORT_MA,
"Charging at VBUS max %dmA, but PD reports %dmA",
DEFAULT_VBUS_SRC_PORT_MA, response.meas.current_max);
@@ -657,7 +657,7 @@ ZTEST_F(usb_detach_test, verify_detach_src_snk)
"Expected Charging at VBUS %dmV, but PD reports %dmV",
DEFAULT_VBUS_MV, src_power_info.meas.voltage_now);
- zassume_equal(src_power_info.meas.current_max, 0,
+ zassert_equal(src_power_info.meas.current_max, 0,
"Charging at VBUS max %dmA, but PD reports %dmA", 0,
src_power_info.meas.current_max);
}
@@ -719,7 +719,7 @@ ZTEST_F(usb_detach_test, verify_detach_snk_src)
"Expected Charging at VBUS %dmV, but PD reports %dmV",
DEFAULT_VBUS_MV, src_power_info.meas.voltage_now);
- zassume_equal(src_power_info.meas.current_max, 0,
+ zassert_equal(src_power_info.meas.current_max, 0,
"Charging at VBUS max %dmA, but PD reports %dmA", 0,
src_power_info.meas.current_max);
}
@@ -791,7 +791,7 @@ ZTEST_F(usb_detach_test, verify_detach_source)
"Expected Charging at VBUS %dmV, but PD reports %dmV",
DEFAULT_VBUS_MV, pd_power_info.meas.voltage_now);
- zassume_equal(pd_power_info.meas.current_max, 0,
+ zassert_equal(pd_power_info.meas.current_max, 0,
"Charging at VBUS max %dmA, but PD reports %dmA", 0,
pd_power_info.meas.current_max);
}