From b30be77ad7700a9dd41e2f8406fee186f3dadd58 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Fri, 31 Jul 2026 22:13:14 +0900 Subject: [PATCH] Fix tester_v3_c base-dir split on Windows paths parse_path_for_test() split the file path on '/' only, so a Windows style arg like models\Cube\Cube.gltf produced an empty base dir and external buffers (Cube.bin) failed to resolve. Split on '\' too. --- tests/tester_v3_c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tester_v3_c.c b/tests/tester_v3_c.c index c85ac70..fbc6edc 100644 --- a/tests/tester_v3_c.c +++ b/tests/tester_v3_c.c @@ -1409,6 +1409,7 @@ static int parse_path_for_test(tg3_model *model, tg3_error_stack *errors, } slash = strrchr(path, '/'); + if (!slash) slash = strrchr(path, '\\'); base_len = slash ? (uint32_t)(slash - path) : 0; err = tg3_parse_auto(model, errors, buf, (uint64_t)sz, path, base_len, opts); free(buf);