summaryrefslogtreecommitdiff
path: root/tests/run-assert-msg-test.sh
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2012-02-21 19:42:22 +0530
committerMatthias Clasen <mclasen@redhat.com>2012-03-04 20:36:04 -0500
commit840c32281d307c709b3b2d83071280b3bf46b969 (patch)
treec5db70d1c4ed2fc1c0d8943e0951b343fa82cc07 /tests/run-assert-msg-test.sh
parentd49a77df5de8102974654f6f27a119dabd550043 (diff)
downloadglib-840c32281d307c709b3b2d83071280b3bf46b969.tar.gz
Run gdb under libtool so that local libraries are used
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
Diffstat (limited to 'tests/run-assert-msg-test.sh')
-rwxr-xr-xtests/run-assert-msg-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run-assert-msg-test.sh b/tests/run-assert-msg-test.sh
index 194481e9d..b6045d6b1 100755
--- a/tests/run-assert-msg-test.sh
+++ b/tests/run-assert-msg-test.sh
@@ -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"