summaryrefslogtreecommitdiff
path: root/test/accel_cal.c
diff options
context:
space:
mode:
authorMichał Barnaś <mb@semihalf.com>2022-08-17 19:09:38 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-10 13:08:23 +0000
commit63d448a1ac0d44eec4e1e6d7be9543deb14be0b2 (patch)
treec1453e8f6a887a0a11bc360435dccf84c046d66d /test/accel_cal.c
parent5ae2886e72af61c9ded8a544bdc420b68708ee49 (diff)
downloadchrome-ec-63d448a1ac0d44eec4e1e6d7be9543deb14be0b2.tar.gz
zephyr: remove the msg NULL parameter in ztest macros
This commit removes the last NULL parameter that was required by the zassert_* and zassume_* macros. BRANCH=main BUG=b:242982518 TEST=run twister Change-Id: I8970ee0a755e103367c5edcdf0fd469337c66721 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3838329 Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Michał Barnaś <barnas@google.com> Tested-by: Michał Barnaś <barnas@google.com>
Diffstat (limited to 'test/accel_cal.c')
-rw-r--r--test/accel_cal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/accel_cal.c b/test/accel_cal.c
index 840bed00c6..481d0615f2 100644
--- a/test/accel_cal.c
+++ b/test/accel_cal.c
@@ -50,7 +50,7 @@ DECLARE_EC_TEST(test_calibrated_correctly_with_kasa)
accumulate(0.7171f, 0.7171f, 0.7171f, 21.0f);
has_bias = accumulate(-0.6971f, -0.6971f, -0.6971f, 21.0f);
- zassert_true(has_bias, NULL);
+ zassert_true(has_bias);
zassert_within(cal.bias[X], 0.01f, 0.0001f, "%f", cal.bias[X]);
zassert_within(cal.bias[Y], 0.01f, 0.0001f, "%f", cal.bias[Y]);
zassert_within(cal.bias[Z], 0.01f, 0.0001f, "%f", cal.bias[Z]);
@@ -74,13 +74,13 @@ DECLARE_EC_TEST(test_calibrated_correctly_with_newton)
kasa_reset(&kasa);
for (i = 0; i < ARRAY_SIZE(data); i += 3) {
- zassert_false(has_bias, NULL);
+ zassert_false(has_bias);
kasa_accumulate(&kasa, data[i], data[i + 1], data[i + 2]);
has_bias = accumulate(data[i], data[i + 1], data[i + 2], 21.0f);
}
kasa_compute(&kasa, kasa_bias, &kasa_radius);
- zassert_true(has_bias, NULL);
+ zassert_true(has_bias);
/* Check that the bias is right */
zassert_within(cal.bias[X], 0.01f, 0.001f, "%f", cal.bias[X]);
zassert_within(cal.bias[Y], 0.01f, 0.001f, "%f", cal.bias[Y]);
@@ -110,7 +110,7 @@ DECLARE_EC_TEST(test_temperature_gates)
accumulate(0.7171f, 0.7171f, 0.7171f, 21.0f);
has_bias = accumulate(-0.6971f, -0.6971f, -0.6971f, 31.0f);
- zassert_false(has_bias, NULL);
+ zassert_false(has_bias);
return EC_SUCCESS;
}