Ecore tests: Define TESTS_SRC_DIR in the same way as the other tests.
authorTom Hacohen <tom@stosb.com>
Tue, 12 Mar 2013 11:43:23 +0000 (11:43 +0000)
committerTom Hacohen <tom@stosb.com>
Tue, 12 Mar 2013 11:43:31 +0000 (11:43 +0000)
Deprecate CHECK_SRC_DIR which is not needed anymore because of that.

src/Makefile_Ecore.am
src/tests/ecore/ecore_suite.c
src/tests/ecore/ecore_test_ecore_audio.c

index 3cc047e..c78f51b 100644 (file)
@@ -71,8 +71,7 @@ tests/ecore/ecore_test_coroutine.c \
 tests/ecore/ecore_suite.h
 
 tests_ecore_ecore_suite_CPPFLAGS = \
--DTESTS_SRC_DIR=\"`pwd`/$(top_srcdir)\" \
--DCHECK_SRC_DIR=\"$(top_srcdir)/src/tests/ecore\" \
+-DTESTS_SRC_DIR=\"$(top_srcdir)/src/tests/ecore\" \
 @CHECK_CFLAGS@ \
 @ECORE_CFLAGS@ \
 @ECORE_AUDIO_CFLAGS@ \
index 5cb676b..02f1812 100644 (file)
@@ -102,7 +102,7 @@ main(int argc, char **argv)
    s = ecore_suite_build(argc - 1, (const char **)argv + 1);
    sr = srunner_create(s);
 
-   srunner_set_xml (sr, CHECK_SRC_DIR "/check-results.xml");
+   srunner_set_xml (sr, TESTS_SRC_DIR "/check-results.xml");
 
    srunner_run_all(sr, CK_ENV);
    failed_count = srunner_ntests_failed(sr);
index 0c914a5..07b0bde 100644 (file)
@@ -14,7 +14,7 @@
 #define SF_FORMAT_RAW 0x040000
 #define SF_FORMAT_PCM_U8 0x0005
 
-#define SOUNDS_DIR TESTS_SRC_DIR"/src/tests/ecore/"
+#define SOUNDS_DIR TESTS_SRC_DIR
 
 #if 0
 /* TODO: must fix these tests to produce no warnings and to be