(libs) call ARDOUR::init_post_engine() from within libardour rather than requiring...
[ardour.git] / gtk2_ardour / arval
index c67bb0ac0399e0303f17b4bdcd9c105173d0bdc4..40c18165da9889e77ac2a2034f48eef843a28b60 100755 (executable)
@@ -1,14 +1,20 @@
 #!/bin/sh
 VALGRIND_OPTIONS="$VALGRIND_OPTIONS --num-callers=50"
 VALGRIND_OPTIONS="$VALGRIND_OPTIONS --error-limit=no"
-VALGRIND_OPTIONS="$VALGRIND_OPTIONS --leak-check=full --leak-resolution=high"
+#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --leak-check=full --leak-resolution=high"
+#VALGRIND_OPTIONS="$VALGRIND_OPTIONS --show-leak-kinds=all -v"
 #VALGRIND_OPTIONS="$VALGRIND_OPTIONS --log-file=/tmp/ardour-%p.log"
 #VALGRIND_OPTIONS="$VALGRIND_OPTIONS --gen-suppressions=all"
 
-. `dirname "$0"`/../build/gtk2_ardour/ardev_common_waf.sh
-LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
+TOP=`dirname "$0"`/..
+. $TOP/build/gtk2_ardour/ardev_common_waf.sh
+if uname | grep -q arwin; then
+       OBJSUPP="--suppressions=${TOP}/tools/objc.supp"
+fi
 export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
 exec valgrind --tool=memcheck \
        $VALGRIND_OPTIONS \
-       --suppressions=`dirname "$0"`/../tools/valgrind.supp \
+       --track-origins=yes \
+       --suppressions=${TOP}/tools/valgrind.supp \
+       $OBJSUPP \
        $TOP/$EXECUTABLE --novst "$@"