From: Chun-wei Fan Date: Mon, 8 May 2023 07:10:17 +0000 (+0800) Subject: reftest-snapshot.c: Fix running reftests on Visual Studio X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~289^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a9ca72695f23845441ed63920af110dfe2c2b580;p=gtk4.git 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. --- 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,