Run gdb under libtool so that local libraries are used
authorNirbheek Chauhan <nirbheek@gentoo.org>
Tue, 21 Feb 2012 14:12:22 +0000 (19:42 +0530)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 5 Mar 2012 01:36:04 +0000 (20:36 -0500)
If this isn't done, the system-wide glib is used for this test,
and that can cause test failures.

https://bugzilla.gnome.org/621368

tests/run-assert-msg-test.sh

index 194481e..b6045d6 100755 (executable)
@@ -34,7 +34,7 @@ if [ -e ".libs/lt-$msg_test" ]; then
        msg_test="lt-$msg_test"
 fi
 echo_v "Running gdb on assert-msg-test"
-OUT=$(gdb --batch --ex run --ex "set print elements 0" --ex "print (char*) __glib_assert_msg" .libs/$msg_test 2> $error_out) || \
+OUT=$(libtool --mode=execute gdb --batch --ex run --ex "set print elements 0" --ex "print (char*) __glib_assert_msg" .libs/$msg_test 2> $error_out) || \
   fail "failed to run gdb"
 
 echo_v "Checking if assert message is in __glib_assert_msg"