From 4cb7db538df7b4e69e49ab047f401b8ba480f224 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Thu, 25 Feb 2010 14:43:34 +0000 Subject: path parsing fixed - tests are now portable --- tests/Makefile.am | 2 +- tests/test-indicator-sound.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index dadc1e4..4404333 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -15,7 +15,7 @@ test_indicator_sound_CFLAGS = \ $(APPLET_CFLAGS) \ -Wall -Werror \ -I$(srcdir) \ - -DBUILD_DIR="\"$(INDICATORDIR)"\" + -DTOP_BUILD_DIR="\"${abs_top_builddir}\"" test_indicator_sound_LDADD = \ $(APPLET_LIBS) \ diff --git a/tests/test-indicator-sound.c b/tests/test-indicator-sound.c index 0885bb5..0de09b7 100644 --- a/tests/test-indicator-sound.c +++ b/tests/test-indicator-sound.c @@ -23,14 +23,14 @@ with this program. If not, see . void test_libindicator_sound_init() { - IndicatorObject * sound_menu = indicator_object_new_from_file(BUILD_DIR "/.libs/libsoundmenu.so"); + IndicatorObject * sound_menu = indicator_object_new_from_file(TOP_BUILD_DIR "/src/.libs/libsoundmenu.so"); g_assert(sound_menu != NULL); g_object_unref(G_OBJECT(sound_menu)); } void test_libindicator_determine_state() { - IndicatorObject * sound_menu = indicator_object_new_from_file(BUILD_DIR "/.libs/libsoundmenu.so"); + IndicatorObject * sound_menu = indicator_object_new_from_file(TOP_BUILD_DIR "/src/.libs/libsoundmenu.so"); get_icon(sound_menu); determine_state_from_volume(40); -- cgit v1.2.3