mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
225d8fb97d
commit
91d7c8de6b
@ -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"
|
||||
|
@ -1389,10 +1389,6 @@ test_non_utf8 (void)
|
||||
g_key_file_free (file);
|
||||
}
|
||||
|
||||
#ifndef SRCDIR
|
||||
#define SRCDIR "."
|
||||
#endif
|
||||
|
||||
static void
|
||||
test_page_boundary (void)
|
||||
{
|
||||
|
@ -6,10 +6,6 @@
|
||||
#include <stdio.h>
|
||||
#include <glib.h>
|
||||
|
||||
#ifndef SRCDIR
|
||||
#define SRCDIR "."
|
||||
#endif
|
||||
|
||||
static int depth = 0;
|
||||
static GString *string;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user