forked from enlightenment/efl
tests/elm_test_image: Give a proper path to test images
../../ does not always work. VPATH builds like distcheck have a different dir layout. ref T2028
This commit is contained in:
parent
a6e84dac81
commit
146a7b63e2
|
@ -76,6 +76,7 @@ elm_suite_SOURCES = \
|
|||
|
||||
elm_suite_CPPFLAGS = \
|
||||
-DTESTS_BUILD_DIR=\"${top_builddir}/src/tests\" \
|
||||
-DELM_IMAGE_DATA_DIR=\"${top_srcdir}/data\" \
|
||||
-I$(top_srcdir)/src/lib \
|
||||
-I$(top_builddir)/src/lib \
|
||||
@CHECK_CFLAGS@ \
|
||||
|
@ -93,6 +94,7 @@ check_PROGRAMS += elm_cxx_suite
|
|||
elm_cxx_suite_SOURCES = elm_cxx_suite.cc
|
||||
elm_cxx_suite_CPPFLAGS = \
|
||||
-DTESTS_BUILD_DIR=\"${top_builddir}/src/tests\" \
|
||||
-DELM_IMAGE_DATA_DIR=\"${top_srcdir}/data\" \
|
||||
-I$(top_srcdir)/src/lib \
|
||||
-I$(top_builddir)/src/lib \
|
||||
@CHECK_CFLAGS@ \
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <Elementary.h>
|
||||
#include "elm_suite.h"
|
||||
|
||||
static const char pathfmt[] = "../../data/images/icon_%02d.png";
|
||||
static const char pathfmt[] = ELM_IMAGE_DATA_DIR"/images/icon_%02d.png";
|
||||
static const char invalid[] = "thereisnosuchimage.png";
|
||||
#define MAX_IMAGE_ID 23
|
||||
|
||||
|
|
Loading…
Reference in New Issue