tests: check that function string_strndup returns NULL if the given string is NULL

This commit is contained in:
Sébastien Helleu 2015-03-22 11:14:12 +01:00
parent 8bcf31950e
commit 8b056d7d24

View File

@ -111,7 +111,7 @@ TEST(String, Duplicate)
const char *str_test = "test"; const char *str_test = "test";
char *str; char *str;
str = string_strndup (NULL, 0); POINTERS_EQUAL(NULL, string_strndup (NULL, 0));
str = string_strndup (str_test, 0); str = string_strndup (str_test, 0);
CHECK(str); CHECK(str);