Kaydet (Commit) 3156076b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some unxgcc_gdbforjunit.sh improvements.

üst 08d79b30
...@@ -36,17 +36,16 @@ WORKDIR=${2} ...@@ -36,17 +36,16 @@ WORKDIR=${2}
if test -n "`which gdb`" if test -n "`which gdb`"
then then
if test -e ${WORKDIR}/core if test `ls "${WORKDIR}"/core* 2>/dev/null | wc -l` -eq 1
then then
STORELOCATION=`mktemp --tmpdir=${WORKDIR} core.XXXX` COREFILE=`ls "${WORKDIR}"/core*`
echo echo
echo "It seems like soffice.bin crashed during the test excution!" echo "It seems like soffice.bin crashed during the test excution!"
echo "Found a core dump at ${WORKDIR}, moving it to ${STORELOCATION}" echo "Found a core dump at ${COREFILE}"
mv ${WORKDIR}/core ${STORELOCATION}
echo "Stacktrace:" echo "Stacktrace:"
GDBCOMMANDFILE=`mktemp` GDBCOMMANDFILE=`mktemp`
echo "bt" > ${GDBCOMMANDFILE} echo "bt" > ${GDBCOMMANDFILE}
gdb -x $GDBCOMMANDFILE --batch ${OFFICEFILE}.bin ${STORELOCATION} gdb -x $GDBCOMMANDFILE --batch ${OFFICEFILE}.bin ${COREFILE}
rm ${GDBCOMMANDFILE} rm ${GDBCOMMANDFILE}
echo echo
exit 1 exit 1
...@@ -60,7 +59,7 @@ then ...@@ -60,7 +59,7 @@ then
exit 0 exit 0
fi fi
else else
echo "You need gdb in you path to general stacktraces." echo "You need gdb in your path to generate stacktraces."
exit 0 exit 0
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment