From 88be89179ba38f8c330ab981f469a1cd37b85db9 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 25 Oct 2008 00:58:41 +0000 Subject: Use C implementation of strncmp. Add a new strncmp testcase. --- test/string/tester.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/string/tester.c b/test/string/tester.c index ac1b90118..7c8d314dc 100644 --- a/test/string/tester.c +++ b/test/string/tester.c @@ -427,6 +427,7 @@ test_strncmp (void) check (strncmp ("abc", "def", 0) == 0, 13); /* Zero count. */ check (strncmp ("abc", "", (size_t)-1) > 0, 14); /* set sign bit in count */ check (strncmp ("abc", "abc", (size_t)-2) == 0, 15); + check (strncmp ("aa", "ab", (size_t)-1) < 0, 16); } static void -- cgit v1.2.3