[glib] glib/tests: Drop unnecessary SRCDIR definitions



commit 91d7c8de6bfa4290006da992ea0ef604ff24b009
Author: Colin Walters <walters verbum org>
Date:   Mon May 6 09:24:25 2013 -0400

    glib/tests: Drop unnecessary SRCDIR definitions
    
    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       |    4 ----
 glib/tests/keyfile.c            |    4 ----
 glib/tests/markup-parse.c       |    4 ----
 glib/tests/spawn-singlethread.c |    5 +----
 4 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/glib/tests/bookmarkfile.c b/glib/tests/bookmarkfile.c
index 3028298..10efaa5 100644
--- a/glib/tests/bookmarkfile.c
+++ b/glib/tests/bookmarkfile.c
@@ -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"
diff --git a/glib/tests/keyfile.c b/glib/tests/keyfile.c
index 530fbf1..671637b 100644
--- a/glib/tests/keyfile.c
+++ b/glib/tests/keyfile.c
@@ -1389,10 +1389,6 @@ test_non_utf8 (void)
   g_key_file_free (file);
 }
 
-#ifndef SRCDIR
-#define SRCDIR "."
-#endif
-
 static void
 test_page_boundary (void)
 {
diff --git a/glib/tests/markup-parse.c b/glib/tests/markup-parse.c
index 856bc94..4083946 100644
--- a/glib/tests/markup-parse.c
+++ b/glib/tests/markup-parse.c
@@ -6,10 +6,6 @@
 #include <stdio.h>
 #include <glib.h>
 
-#ifndef SRCDIR
-#define SRCDIR "."
-#endif
-
 static int depth = 0;
 static GString *string;
 
diff --git a/glib/tests/spawn-singlethread.c b/glib/tests/spawn-singlethread.c
index ffc1601..77790a7 100644
--- a/glib/tests/spawn-singlethread.c
+++ b/glib/tests/spawn-singlethread.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]