diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-03-22 11:14:12 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-03-22 11:14:12 +0100 |
commit | 8b056d7d24384611622a1d635da1b1f10580b9ac (patch) | |
tree | 73578798e8ea2afc657d186861cfffa627a51073 /tests/unit | |
parent | 8bcf31950ea61b2a7e5a3e26a682c3d93e3e0e4c (diff) | |
download | weechat-8b056d7d24384611622a1d635da1b1f10580b9ac.zip |
tests: check that function string_strndup returns NULL if the given string is NULL
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/core/test-string.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/core/test-string.cpp b/tests/unit/core/test-string.cpp index 20a782cc8..97f761d47 100644 --- a/tests/unit/core/test-string.cpp +++ b/tests/unit/core/test-string.cpp @@ -111,7 +111,7 @@ TEST(String, Duplicate) const char *str_test = "test"; char *str; - str = string_strndup (NULL, 0); + POINTERS_EQUAL(NULL, string_strndup (NULL, 0)); str = string_strndup (str_test, 0); CHECK(str); |