From 8b056d7d24384611622a1d635da1b1f10580b9ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 22 Mar 2015 11:14:12 +0100 Subject: [PATCH] tests: check that function string_strndup returns NULL if the given string is NULL --- tests/unit/core/test-string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);