string: Add tests for strdup (BZ #30266)
authorJoe Simmons-Talbott <josimmon@redhat.com>
Fri, 21 Apr 2023 13:24:23 +0000 (09:24 -0400)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 21 Apr 2023 13:28:01 +0000 (10:28 -0300)
commiteaaad78db41724e5a18a42becb238bfc4e683998
treeff81ef4e3d54766f50331a94b00a54e9b6167e45
parent1626d8a521c7c771d4118b1328421fea113cab64
string: Add tests for strdup (BZ #30266)

Copy strcpy tests for strdup.  Covers some basic testcases with random
strings.  Add a zero-length string testcase.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
string/Makefile
string/test-strdup.c [new file with mode: 0644]