From 5e6da541665822fba4137c5bfcaabe6a60fdca4f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 11 Mar 2025 12:00:18 -0600 Subject: [PATCH] [test] Minor, accept absolute font paths --- test/api/hb-test.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/api/hb-test.h b/test/api/hb-test.h index 82006364d..537a2df82 100644 --- a/test/api/hb-test.h +++ b/test/api/hb-test.h @@ -309,10 +309,10 @@ static inline char * hb_test_resolve_path (const char *path) { #if GLIB_CHECK_VERSION(2,37,2) - return g_test_build_filename (G_TEST_DIST, path, NULL); -#else - return path = g_strdup (path); + if (path[0] != '/') + return g_test_build_filename (G_TEST_DIST, path, NULL); #endif + return g_strdup (path); } static inline hb_face_t *