From a9ca72695f23845441ed63920af110dfe2c2b580 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 8 May 2023 15:10:17 +0800 Subject: [PATCH] reftest-snapshot.c: Fix running reftests on Visual Studio On Visual Studio-like builds, shove a ".dll" suffix for the reftest module so that we look for the correct DLL when running the tests. --- testsuite/reftests/reftest-snapshot.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testsuite/reftests/reftest-snapshot.c b/testsuite/reftests/reftest-snapshot.c index d2ecc0ee65..d999a1e852 100644 --- a/testsuite/reftests/reftest-snapshot.c +++ b/testsuite/reftests/reftest-snapshot.c @@ -67,7 +67,13 @@ reftest_scope_create_closure (GtkBuilderScope *scope, break; case 2: +#ifdef _MSC_VER + char *modulefile = g_strconcat (split[0], ".", G_MODULE_SUFFIX, NULL); + module = reftest_module_new (self->directory, modulefile); + g_free (modulefile); +#else module = reftest_module_new (self->directory, split[0]); +#endif if (module == NULL) { g_set_error (error, -- 2.30.2