summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-04-15 17:54:32 +0100
committerTom Hacohen <tom@stosb.com>2016-04-15 18:18:22 +0100
commitb337558fd673b88d3ae016f018dbab6f321150e1 (patch)
treeb8555471cbd8770eef77eead629da6ee093a4cfa /src/tests
parent68417186a95533b5838eacd397e11ba1782a2384 (diff)
Edje tests: Fix tests when running out of source and remove hack.
There was a seriously horrible hack here to workaround this issue. This hacks goes all the way back to 3e07236. The essence of the hack was to try the system files for the tests (and I guess that's why we were shipping them although we really shouldn't). This change fixes the file lookup for out of source files. Hat-tip to zmike for pointing me to abs_top_buildir.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/edje/edje_test_edje.c10
1 files changed, 0 insertions, 10 deletions
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