From bee08cf290d335257f708d7f573e9161ebbff1fc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 5 Apr 2025 23:07:25 -0600 Subject: [PATCH] [hb-test] Don't convert _ in test names to / Slash is used for grouping... --- test/api/hb-test.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/test/api/hb-test.h b/test/api/hb-test.h index fd36444f2..9e50eafc8 100644 --- a/test/api/hb-test.h +++ b/test/api/hb-test.h @@ -117,17 +117,13 @@ hb_test_run (void) static inline char * hb_test_normalize_path (const char *path) { - char *s, *p; - g_assert (0 == strncmp (path, "test_", 5)); path += 4; - s = g_strdup (path); - for (p = s; *p; p++) - if (*p == '_') - *p = '/'; + char *p = g_strdup (path); + p[0] = '/'; - return s; + return p; }