diff options
Diffstat (limited to 'tests/unit/core')
-rw-r--r-- | tests/unit/core/test-core-string.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/core/test-core-string.cpp b/tests/unit/core/test-core-string.cpp index 9960424cc..d3e22cdeb 100644 --- a/tests/unit/core/test-core-string.cpp +++ b/tests/unit/core/test-core-string.cpp @@ -2093,13 +2093,12 @@ TEST(CoreString, InputForBuffer) char *str; POINTERS_EQUAL(NULL, string_input_for_buffer (NULL)); + POINTERS_EQUAL(NULL, string_input_for_buffer ("/")); POINTERS_EQUAL(NULL, string_input_for_buffer ("/abc")); + str = strdup (""); STRCMP_EQUAL(str, string_input_for_buffer (str)); free (str); - str = strdup ("/"); - STRCMP_EQUAL(str, string_input_for_buffer (str)); - free (str); str = strdup ("/ "); STRCMP_EQUAL(str, string_input_for_buffer (str)); free (str); |