And refer to it in srcdir. Otherwise, the test fails mysteriously
in make distcheck.
gen-casemap-txt.pl \
iochannel-test-infile \
utf8.txt \
gen-casemap-txt.pl \
iochannel-test-infile \
utf8.txt \
+ timeloop-basic.c \
+ assert-msg-test.gdb
BUILT_EXTRA_DIST = \
makefile.msc
BUILT_EXTRA_DIST = \
makefile.msc
fi
echo_v "Running gdb on assert-msg-test"
fi
echo_v "Running gdb on assert-msg-test"
-OUT=$($LIBTOOL --mode=execute gdb --batch -x assert-msg-test.gdb assert-msg-test 2> $error_out) || fail "failed to run gdb"
+OUT=$($LIBTOOL --mode=execute gdb --batch -x ${srcdir:-.}/assert-msg-test.gdb ./assert-msg-test 2> $error_out) || fail "failed to run gdb"
echo_v "Checking if assert message is in __glib_assert_msg"
if ! echo "$OUT" | grep -q '^$1.*"ERROR:.*assert-msg-test.c:.*:.*main.*: assertion failed: (42 < 0)"'; then
echo_v "Checking if assert message is in __glib_assert_msg"
if ! echo "$OUT" | grep -q '^$1.*"ERROR:.*assert-msg-test.c:.*:.*main.*: assertion failed: (42 < 0)"'; then
fail "__glib_assert_msg does not have assertion message"
fi
fail "__glib_assert_msg does not have assertion message"
fi