[glib] Fix run-assert-msg-test to work with libtool-2.2.x.
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix run-assert-msg-test to work with libtool-2.2.x.
- Date: Mon, 8 Mar 2010 05:18:14 +0000 (UTC)
commit 96d105906ef267b687ee6fbe085a791f3b17afc6
Author: Priit Laes <plaes plaes org>
Date: Mon Mar 8 00:16:23 2010 -0500
Fix run-assert-msg-test to work with libtool-2.2.x.
tests/run-assert-msg-test.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/run-assert-msg-test.sh b/tests/run-assert-msg-test.sh
index bf05a7c..8557e02 100755
--- a/tests/run-assert-msg-test.sh
+++ b/tests/run-assert-msg-test.sh
@@ -29,8 +29,12 @@ if ! type gdb >/dev/null 2>&1; then
exit 0
fi
+msg_test="assert-msg-test"
+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 "print (char*) __glib_assert_msg" .libs/lt-assert-msg-test 2> $error_out) || \
+OUT=$(gdb --batch --ex run --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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]