summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-05-27 07:41:25 -0400
committerTom Rini <trini@konsulko.com>2021-05-27 07:41:25 -0400
commita0ecfa568d3309bb21869622bfc7147665c4260d (patch)
tree977aa2f50c7cbc50ddf7dc4384e6126b38e293c1 /include
parentf4b2786b80583c8b48245ac5f90fda47328f3a6c (diff)
parentcb6c9c83e2f1cb5b96851445dbf3dea8541cb212 (diff)
Merge branch '2021-05-26-assorted-bugfixes'
Diffstat (limited to 'include')
-rw-r--r--include/test/ut.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/test/ut.h b/include/test/ut.h
index fbbba286ee..656e25fe57 100644
--- a/include/test/ut.h
+++ b/include/test/ut.h
@@ -177,23 +177,6 @@ int ut_check_console_dump(struct unit_test_state *uts, int total_bytes);
} \
}
-/*
- * Assert that two string expressions are equal, up to length of the
- * first
- */
-#define ut_asserteq_strn(expr1, expr2) { \
- const char *_val1 = (expr1), *_val2 = (expr2); \
- int _len = strlen(_val1); \
- \
- if (memcmp(_val1, _val2, _len)) { \
- ut_failf(uts, __FILE__, __LINE__, __func__, \
- #expr1 " = " #expr2, \
- "Expected \"%.*s\", got \"%.*s\"", \
- _len, _val1, _len, _val2); \
- return CMD_RET_FAILURE; \
- } \
-}
-
/* Assert that two memory areas are equal */
#define ut_asserteq_mem(expr1, expr2, len) { \
const u8 *_val1 = (u8 *)(expr1), *_val2 = (u8 *)(expr2); \