diff options
-rw-r--r-- | src/kernel/tests/util.c | 13 | ||||
-rw-r--r-- | src/kernel/util.h | 4 |
2 files changed, 0 insertions, 17 deletions
diff --git a/src/kernel/tests/util.c b/src/kernel/tests/util.c index 67ff1c4..b5fa4dd 100644 --- a/src/kernel/tests/util.c +++ b/src/kernel/tests/util.c @@ -21,19 +21,6 @@ TEST(memcmp) { TEST_COND(0 < memcmp("654", "555", 3)); } -TEST(static_strcmp) { - TEST_COND(0 == static_strcmp("", "")); - TEST_COND(0 == static_strcmp("same", "same")); - - TEST_COND(0 != static_strcmp("same", "diff")); - TEST_COND(0 != static_strcmp("same!", "same")); - TEST_COND(0 != static_strcmp("same", "same!")); - - TEST_COND(0 > static_strcmp("555", "654")); - TEST_COND(0 < static_strcmp("654", "555")); -} - void tests_utils(void) { TEST_RUN(memcmp); - TEST_RUN(static_strcmp); } diff --git a/src/kernel/util.h b/src/kernel/util.h index 0aa2c4c..b50810d 100644 --- a/src/kernel/util.h +++ b/src/kernel/util.h @@ -8,7 +8,3 @@ void *memcpy(void *dest, const void *src, size_t n); void *memset(void *s, int c, size_t n); int memcmp(const void *s1, const void *s2, size_t n); - -// s1 MUST be a string known at compiletime -#define static_strcmp(s1, s2) \ - memcmp(s1, s2, sizeof(s1)) |