String: Strength memset tests in test-memset.c
authorNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 14 Feb 2022 01:40:37 +0000 (19:40 -0600)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 15 Feb 2022 17:25:04 +0000 (11:25 -0600)
commit0281c7a7ec8f3f46d8e6f5f3d7fca548946dbfce
tree415ac37ce28a290d81238b6a1cad2b423184f9a4
parenta5659cf27d3ce6101c1632715d18ab6321755340
String: Strength memset tests in test-memset.c

The prior sentinel logic was broken and was checking the SIMPLE_MEMSET
as opposed to the tested implementation. As well `s` (the test buffer)
was not reset between implementation tests so it was possible for a
buggy implementation to be hidden by a previously executed correct
one.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
string/test-memset.c