glib/tests: Drop unnecessary SRCDIR definitions
authorColin Walters <walters@verbum.org>
Mon, 6 May 2013 13:24:25 +0000 (09:24 -0400)
committerColin Walters <walters@verbum.org>
Thu, 16 May 2013 12:51:57 +0000 (08:51 -0400)
It's always going to be defined, we don't support compiling these
tests "by hand".  This is a cleanup commit for the installed tests
work.

https://bugzilla.gnome.org/show_bug.cgi?id=699079

glib/tests/bookmarkfile.c
glib/tests/keyfile.c
glib/tests/markup-parse.c
glib/tests/spawn-singlethread.c

index 3028298..10efaa5 100644 (file)
@@ -7,10 +7,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-#ifndef SRCDIR
-#define SRCDIR "."
-#endif
-
 #define TEST_URI_0     "file:///abc/defgh/ijklmnopqrstuvwxyz"
 #define TEST_URI_1     "file:///test/uri/1"
 #define TEST_URI_2     "file:///test/uri/2"
index 530fbf1..671637b 100644 (file)
@@ -1389,10 +1389,6 @@ test_non_utf8 (void)
   g_key_file_free (file);
 }
 
-#ifndef SRCDIR
-#define SRCDIR "."
-#endif
-
 static void
 test_page_boundary (void)
 {
index 856bc94..4083946 100644 (file)
@@ -6,10 +6,6 @@
 #include <stdio.h>
 #include <glib.h>
 
-#ifndef SRCDIR
-#define SRCDIR "."
-#endif
-
 static int depth = 0;
 static GString *string;
 
index ffc1601..77790a7 100644 (file)
@@ -200,10 +200,7 @@ main (int   argc,
       g_free (echo_prog_path);
       echo_prog_path = g_build_filename (dirname, "lt-test-spawn-echo" EXEEXT, NULL);
     }
-#ifndef SRCDIR
-#define SRCDIR dirname
-#endif
-  echo_script_path = g_build_filename (SRCDIR, "echo-script", NULL);
+  echo_script_path = g_build_filename (dirname, "echo-script", NULL);
   if (!g_file_test (echo_script_path, G_FILE_TEST_EXISTS))
     {
       gchar *tmp;