check.mak: Valgrind fails to find tests written in tests/check/ directly (rather...
authorJan Schmidt <thaytan@mad.scientist.com>
Mon, 24 Jul 2006 05:28:26 +0000 (05:28 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Mon, 24 Jul 2006 05:28:26 +0000 (05:28 +0000)
Original commit message from CVS:
* check.mak:
Valgrind fails to find tests written in tests/check/ directly (rather
than a subdir) - because valgrind gets run with a filename that
doesn't contain a relative path, it goes searching /usr/bin instead.
Run with ./.... to make things work either way.

* gtk-doc-plugins.mak:
Add $(top_builddir)/src as a place to look for plugins
when building too, since that's where gst-template keeps things

ChangeLog
check.mak
gtk-doc-plugins.mak

index 79f15cb..2044053 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-07-24  Jan Schmidt  <thaytan@mad.scientist.com>
+
+       * check.mak:
+       Valgrind fails to find tests written in tests/check/ directly (rather
+       than a subdir) - because valgrind gets run with a filename that
+       doesn't contain a relative path, it goes searching /usr/bin instead.
+       Run with ./.... to make things work either way.
+
+       * gtk-doc-plugins.mak:
+       Add $(top_builddir)/src as a place to look for plugins
+       when building too, since that's where gst-template keeps things
+
 2006-07-23  Stefan Kost  <ensonic@users.sf.net>
 
        Patch by: Frederic Peters <fpeters@entrouvert.com>
index 254b20b..6bd8979 100644 (file)
--- a/check.mak
+++ b/check.mak
@@ -49,7 +49,7 @@ LOOPS = 10
        $(foreach s,$(SUPPRESSIONS),--suppressions=$(s))        \
        --tool=memcheck --leak-check=full --trace-children=yes  \
        --leak-resolution=high --num-callers=20                 \
-       $* 2>&1 | tee valgrind.log
+       ./$* 2>&1 | tee valgrind.log
        @if grep "==" valgrind.log > /dev/null 2>&1; then       \
            rm valgrind.log;                                    \
            exit 1;                                             \
@@ -66,7 +66,7 @@ LOOPS = 10
        --tool=memcheck --leak-check=full --trace-children=yes  \
        --leak-resolution=high --num-callers=20                 \
        --gen-suppressions=all                                  \
-       $* 2>&1 | tee suppressions.log
+       ./$* 2>&1 | tee suppressions.log
        
 # valgrind any given test until failure by running make test.valgrind-forever
 %.valgrind-forever: %
index 157e9ef..cb98eb7 100644 (file)
@@ -112,7 +112,7 @@ $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(SCANOBJ_FILES_O): scan-build.stamp
 INSPECT_REGISTRY=$(top_builddir)/docs/plugins/inspect-registry.xml
 INSPECT_ENVIRONMENT=\
         GST_PLUGIN_SYSTEM_PATH= \
-        GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/sys:$(top_builddir)/ext:$(top_builddir)/plugins \
+        GST_PLUGIN_PATH=$(top_builddir)/gst:$(top_builddir)/sys:$(top_builddir)/ext:$(top_builddir)/plugins:$(top_builddir)/src \
         GST_REGISTRY=$(INSPECT_REGISTRY)
 
 # update the element and plugin XML descriptions; store in inspect/