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
This commit is contained in:
Colin Walters 2013-05-06 09:24:25 -04:00
parent 225d8fb97d
commit 91d7c8de6b
4 changed files with 1 additions and 16 deletions

View 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"

View 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)
{

View File

@ -6,10 +6,6 @@
#include <stdio.h>
#include <glib.h>
#ifndef SRCDIR
#define SRCDIR "."
#endif
static int depth = 0;
static GString *string;

View 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;