[gobject-introspection] tests: work around make check warning



commit 046fbbac8730fe7ca578596fb71eb96fc77cfb93
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Wed Oct 31 16:01:16 2012 +0100

    tests: work around make check warning
    
    The tests in tests/repository/ depend on libregress.so
    from tests/scanner which cannot be loaded during make check.
    Fixing this properly would require migrating to non-recursive
    automake for the tests, but for now we can just work around
    and set LD_LIBRARY_PATH (for linux) and PATH (for win32).
    
    http://bugzilla.gnome.org/show_bug.cgi?id=675049

 tests/repository/Makefile.am |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tests/repository/Makefile.am b/tests/repository/Makefile.am
index ca2efe3..96afb89 100644
--- a/tests/repository/Makefile.am
+++ b/tests/repository/Makefile.am
@@ -17,5 +17,8 @@ gitypelibtest_CPPFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
 gitypelibtest_LDADD = $(top_builddir)/libgirepository-1.0.la $(GIREPO_LIBS)
 
 TESTS = gitestrepo gitestthrows gitypelibtest
-TESTS_ENVIRONMENT=env GI_TYPELIB_PATH=$(top_builddir):$(top_builddir)/gir:$(top_builddir)/tests:$(top_builddir)/tests/scanner: \
-   XDG_DATA_DIRS="$(top_srcdir)/gir:$(XDG_DATA_DIRS)" $(DEBUG)
+TESTS_ENVIRONMENT=env GI_TYPELIB_PATH="$(top_builddir):$(top_builddir)/gir:$(top_builddir)/tests:$(top_builddir)/tests/scanner" \
+   XDG_DATA_DIRS="$(top_srcdir)/gir:$(XDG_DATA_DIRS)" \
+   PATH="$(top_builddir)/tests/scanner/.libs:$(PATH)" \
+   LD_LIBRARY_PATH="$(top_builddir)/tests/scanner/.libs:$(LD_LIBRARY_PATH)" \
+   $(DEBUG)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]