mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 21:33:09 +02:00
More srcdir != destdir tests fallout
This commit is contained in:
parent
aa3db2c91b
commit
8f87d428a6
@ -23,7 +23,7 @@
|
|||||||
#include "gconstructor.h"
|
#include "gconstructor.h"
|
||||||
#include "test_resources2.h"
|
#include "test_resources2.h"
|
||||||
|
|
||||||
const gchar *datapath;
|
const gchar *datapath, *libpath;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
test_resource (GResource *resource)
|
test_resource (GResource *resource)
|
||||||
@ -408,7 +408,7 @@ test_resource_module (void)
|
|||||||
{
|
{
|
||||||
char *path;
|
char *path;
|
||||||
|
|
||||||
path = g_build_filename (datapath, "libresourceplugin", NULL);
|
path = g_build_filename (libpath, "libresourceplugin", NULL);
|
||||||
module = g_io_module_new (path);
|
module = g_io_module_new (path);
|
||||||
g_free (path);
|
g_free (path);
|
||||||
|
|
||||||
@ -642,9 +642,15 @@ main (int argc,
|
|||||||
char *argv[])
|
char *argv[])
|
||||||
{
|
{
|
||||||
if (g_getenv ("G_TEST_DATA"))
|
if (g_getenv ("G_TEST_DATA"))
|
||||||
datapath = g_getenv ("G_TEST_DATA");
|
{
|
||||||
|
datapath = g_getenv ("G_TEST_DATA");
|
||||||
|
libpath = g_getenv ("G_TEST_DATA");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
datapath = SRCDIR;
|
{
|
||||||
|
datapath = SRCDIR;
|
||||||
|
libpath = ".libs";
|
||||||
|
}
|
||||||
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user