aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/test-indicator-sound.c4
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 <http://www.gnu.org/licenses/>.
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);