From 0c48aa0551151ea201f7f528492e89a0b08a6890 Mon Sep 17 00:00:00 2001 From: Joe Simmons-Talbott Date: Fri, 21 Apr 2023 09:24:24 -0400 Subject: string: Add tests for strndup (BZ #30266) Copy strncpy tests for strndup. Covers some basic testcases with random strings. Remove tests that set the destination's bytes and checked the resulting buffer's bytes. Remove wide character test support since wcsndup() doesn't exist. Reviewed-by: Adhemerval Zanella --- string/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'string/Makefile') diff --git a/string/Makefile b/string/Makefile index 472e318aea..2eef6f1dfc 100644 --- a/string/Makefile +++ b/string/Makefile @@ -163,6 +163,7 @@ tests := \ test-strncat \ test-strncmp \ test-strncpy \ + test-strndup \ test-strnlen \ test-strpbrk \ test-strrchr \ -- cgit v1.2.3