mbox series

[0/2] Add tests for strdup and strndup (BZ #30266)

Message ID 20230329150500.2886135-1-josimmon@redhat.com
Headers show
Series Add tests for strdup and strndup (BZ #30266) | expand

Message

Joe Simmons-Talbott March 29, 2023, 3:04 p.m. UTC
Copy strcpy and strncpy tests to strdup and strndup repectively.  Remove
tests that checked the surrounding bytes of the result as they are not needed.

Joe Simmons-Talbott (2):
  strdup: Add tests (BZ #30266)
  strndup: Add tests (BZ #30266)

 string/Makefile       |   2 +
 string/test-strdup.c  | 247 +++++++++++++++++++++++++++++++++++++++
 string/test-strndup.c | 266 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 515 insertions(+)
 create mode 100644 string/test-strdup.c
 create mode 100644 string/test-strndup.c