mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
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
This commit is contained in:
parent
d49a77df5d
commit
840c32281d
@ -34,7 +34,7 @@ if [ -e ".libs/lt-$msg_test" ]; then
|
|||||||
msg_test="lt-$msg_test"
|
msg_test="lt-$msg_test"
|
||||||
fi
|
fi
|
||||||
echo_v "Running gdb on assert-msg-test"
|
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"
|
fail "failed to run gdb"
|
||||||
|
|
||||||
echo_v "Checking if assert message is in __glib_assert_msg"
|
echo_v "Checking if assert message is in __glib_assert_msg"
|
||||||
|
Loading…
Reference in New Issue
Block a user