summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile_Edje.am2
-rw-r--r--src/tests/edje/edje_test_edje.c10
2 files changed, 1 insertions, 11 deletions
diff --git a/src/Makefile_Edje.am b/src/Makefile_Edje.am
index 2bcf7d2e24..458a98ff67 100644
--- a/src/Makefile_Edje.am
+++ b/src/Makefile_Edje.am
@@ -276,7 +276,7 @@ tests/edje/edje_suite.h
276tests_edje_edje_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \ 276tests_edje_edje_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
277$(EDJE_COMMON_CPPFLAGS) \ 277$(EDJE_COMMON_CPPFLAGS) \
278-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/edje\" \ 278-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/edje\" \
279-DTESTS_BUILD_DIR=\"$(top_builddir)/src/tests/edje\" \ 279-DTESTS_BUILD_DIR=\"$(abs_top_builddir)/src/tests/edje\" \
280@CHECK_CFLAGS@ 280@CHECK_CFLAGS@
281tests_edje_edje_suite_LDADD = @CHECK_LIBS@ $(USE_EDJE_BIN_LIBS) 281tests_edje_edje_suite_LDADD = @CHECK_LIBS@ $(USE_EDJE_BIN_LIBS)
282tests_edje_edje_suite_DEPENDENCIES = @USE_EDJE_INTERNAL_LIBS@ 282tests_edje_edje_suite_DEPENDENCIES = @USE_EDJE_INTERNAL_LIBS@
diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c
index 87a0afda62..8a3d6451a8 100644
--- a/src/tests/edje/edje_test_edje.c
+++ b/src/tests/edje/edje_test_edje.c
@@ -49,16 +49,6 @@ test_layout_get(const char *name)
49 49
50 snprintf(filename, PATH_MAX, TESTS_BUILD_DIR"/data/%s", name); 50 snprintf(filename, PATH_MAX, TESTS_BUILD_DIR"/data/%s", name);
51 51
52 static int is_local = -1;
53 if (is_local == -1)
54 {
55 struct stat st;
56 is_local = (stat(filename, &st) == 0);
57 }
58
59 if (!is_local)
60 snprintf(filename, PATH_MAX, PACKAGE_DATA_DIR"/data/%s", name);
61
62 return filename; 52 return filename;
63} 53}
64 54