08c3a6
commit 15b00d2af0e56dcc8c244a36d6872d301b0c7185
08c3a6
Author: Noah Goldstein <goldstein.w.n@gmail.com>
08c3a6
Date:   Fri Feb 18 17:00:25 2022 -0600
08c3a6
08c3a6
    x86: Fix TEST_NAME to make it a string in tst-strncmp-rtm.c
08c3a6
    
08c3a6
    Previously TEST_NAME was passing a function pointer. This didn't fail
08c3a6
    because of the -Wno-error flag (to allow for overflow sizes passed
08c3a6
    to strncmp/wcsncmp)
08c3a6
    
08c3a6
    Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
08c3a6
    (cherry picked from commit b98d0bbf747f39770e0caba7e984ce9f8f900330)
08c3a6
08c3a6
diff --git a/sysdeps/x86/tst-strncmp-rtm.c b/sysdeps/x86/tst-strncmp-rtm.c
08c3a6
index 4e9f094f39c72f67..aef9866cf2fbe774 100644
08c3a6
--- a/sysdeps/x86/tst-strncmp-rtm.c
08c3a6
+++ b/sysdeps/x86/tst-strncmp-rtm.c
08c3a6
@@ -23,12 +23,12 @@
08c3a6
 # define CHAR wchar_t
08c3a6
 # define MEMSET wmemset
08c3a6
 # define STRNCMP wcsncmp
08c3a6
-# define TEST_NAME wcsncmp
08c3a6
+# define TEST_NAME "wcsncmp"
08c3a6
 #else /* !WIDE */
08c3a6
 # define CHAR char
08c3a6
 # define MEMSET memset
08c3a6
 # define STRNCMP strncmp
08c3a6
-# define TEST_NAME strncmp
08c3a6
+# define TEST_NAME "strncmp"
08c3a6
 #endif /* !WIDE */
08c3a6
 
08c3a6