GNOME Bugzilla – Bug 629164
assert-msg-test fails because gdb doesn't support --ex parameter
Last modified: 2017-05-16 08:18:45 UTC
I'm on SuSE 9 and the test `assert-msg-test´ fails. jesus@linux:/tmp/glib-2.24.1/tests> ./run-assert-msg-test.sh -v Running assert-msg-test Running gdb on assert-msg-test Checking if assert message is in __glib_assert_msg Test failed: __glib_assert_msg does not have assertion message The command that is running is: gdb --batch --ex run --ex "print (char*) __glib_assert_msg" .libs/$msg_test where $msg_test is lt-assert-msg-test The problem is that my gdb version doesn't support --ex parameter. My GDB version is GNU gdb 5.3.92. But it supports the -x parameter, to pass the file that contains the commands to run. I've created a file containing those lines: run print (char*) __glib_assert_msg And ran the gdb with the -x parameter and it worked. Maybe my gdb is too old, probably it's not worth to spend time on fixing this, but just to let you know that a more "compatible" way of doing this test exists. Thanks.
I guess this is too old to be fixed
(In reply to Jesús Martínez Novo from comment #1) > I guess this is too old to be fixed It was actually fixed in bug #684723. Thanks for following up. *** This bug has been marked as a duplicate of bug 684723 ***