summaryrefslogtreecommitdiff
path: root/docs
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 /docs
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 'docs')
-rw-r--r--docs/unit_tests.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/unit_tests.md b/docs/unit_tests.md
index e24b6effdf..29311ac346 100644
--- a/docs/unit_tests.md
+++ b/docs/unit_tests.md
@@ -90,7 +90,7 @@ test_static EC_TEST_RETURN test_my_function(void)
bool condition = some_function();
/* Check that the expected condition is correct. */
- zassert_true(condition, NULL);
+ zassert_true(condition);
return EC_SUCCESS;
}
@@ -113,7 +113,7 @@ test_static EC_TEST_RETURN test_my_function(void)
```
The only difference between those two versions of `test/my_test.c` is the
-assertion: `c zassert_true(condition, NULL);` versus `c TEST_EQ(condition, true,
+assertion: `c zassert_true(condition);` versus `c TEST_EQ(condition, true,
"%d");`
### Specify the test cases to run