diff options
| author | BernardXiong <[email protected]> | 2021-09-11 18:34:13 +0800 |
|---|---|---|
| committer | BernardXiong <[email protected]> | 2021-09-11 18:34:13 +0800 |
| commit | 51e055963127f443595e29fc493dcd22f33ac0f1 (patch) | |
| tree | fbdbae6a473c0356021229381cca733d4786b411 /components | |
| parent | 99804fa19ac405a73088a234fe5f0fc384e122c1 (diff) | |
[utest] fix libc issue
Diffstat (limited to 'components')
| -rw-r--r-- | components/utilities/utest/utest_assert.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/utilities/utest/utest_assert.h b/components/utilities/utest/utest_assert.h index 2e2007e773..ba76fc39ee 100644 --- a/components/utilities/utest/utest_assert.h +++ b/components/utilities/utest/utest_assert.h @@ -50,8 +50,8 @@ void utest_assert_buf(const char *a, const char *b, rt_size_t sz, rt_bool_t equa */ #define uassert_true(value) __utest_assert(value, "(" #value ") is false") #define uassert_false(value) __utest_assert(!(value), "(" #value ") is true") -#define uassert_null(value) __utest_assert((const char *)(value) == NULL, "(" #value ") is not null") -#define uassert_not_null(value) __utest_assert((const char *)(value) != NULL, "(" #value ") is null") +#define uassert_null(value) __utest_assert((const char *)(value) == RT_NULL, "(" #value ") is not null") +#define uassert_not_null(value) __utest_assert((const char *)(value) != RT_NULL, "(" #value ") is null") #define uassert_int_equal(a, b) __utest_assert((a) == (b), "(" #a ") not equal to (" #b ")") #define uassert_int_not_equal(a, b) __utest_assert((a) != (b), "(" #a ") equal to (" #b ")") |
