summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKhem Raj <kraj@mvista.com>2008-10-25 00:58:41 +0000
committerKhem Raj <kraj@mvista.com>2008-10-25 00:58:41 +0000
commit88be89179ba38f8c330ab981f469a1cd37b85db9 (patch)
tree4b66978e11bb0a2aafa2b063b3477cabedb3ce58 /test
parent33b19ecce8bf44d6f820731932dd89a57e7ea48f (diff)
Use C implementation of strncmp.
Add a new strncmp testcase.
Diffstat (limited to 'test')
-rw-r--r--test/string/tester.c1
1 files changed, 1 insertions, 0 deletions
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