More test fixes for builddir != srcdir

This commit is contained in:
Matthias Clasen 2013-05-27 22:05:19 -04:00
parent 98a921045c
commit 4c9a7b65eb
4 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,7 @@ AM_CPPFLAGS = \
$(gmodule_INCLUDES) \
-DGLIB_DISABLE_DEPRECATION_WARNINGS \
-DG_LOG_DOMAIN=\"GLib\" \
-DSRCDIR=\"$(srcdir)\" \
$(GLIB_DEBUG_FLAGS)
AM_CFLAGS = -g

View File

@ -69,7 +69,7 @@ gint main (gint argc, gchar * argv[])
if (g_getenv ("G_TEST_DATA"))
datapath = g_getenv ("G_TEST_DATA");
else
datapath = ".";
datapath = SRCDIR;
filename = g_build_filename (datapath, "iochannel-test-infile", NULL);

View File

@ -24,7 +24,7 @@ int main (int argc, char **argv)
if (g_getenv ("G_TEST_DATA"))
srcdir = g_getenv ("G_TEST_DATA");
else
srcdir = ".";
srcdir = SRCDIR;
filename = g_strconcat (srcdir, G_DIR_SEPARATOR_S, "casemap.txt", NULL);

View File

@ -324,7 +324,7 @@ main (int argc, char **argv)
if (g_getenv ("G_TEST_DATA"))
srcdir = g_getenv ("G_TEST_DATA");
else
srcdir = ".";
srcdir = SRCDIR;
testfile = g_strconcat (srcdir, G_DIR_SEPARATOR_S "utf8.txt", NULL);