summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-03-22 11:14:12 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-03-22 11:14:12 +0100
commit8b056d7d24384611622a1d635da1b1f10580b9ac (patch)
tree73578798e8ea2afc657d186861cfffa627a51073 /tests/unit
parent8bcf31950ea61b2a7e5a3e26a682c3d93e3e0e4c (diff)
downloadweechat-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.cpp2
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);