diff --git a/build/buildbot/config/include/defs.xml b/build/buildbot/config/include/defs.xml index 5b854d5aee..fc251c3122 100644 --- a/build/buildbot/config/include/defs.xml +++ b/build/buildbot/config/include/defs.xml @@ -335,7 +335,8 @@ --> - + + @@ -347,10 +348,10 @@ - + - + @@ -360,6 +361,7 @@ + cd tests && runtests.bat @@ -367,10 +369,31 @@ cd tests && runtests.bat + ERR=0 cd tests || exit 0 -./test || ERR=$? -if [ -n "$DISPLAY" -a -x test_gui ]; then ./test_gui || ERR=$?; fi +ulimit -c unlimited + +try() +{ + rm -f core + echo Running: "$@" + "$@" || ERR=$? + + if [ -f core -a -x "`which gdb`" ]; then + echo Crashed, attempting to display backtrace: + gdb -batch -c core -ex 'set pagination off' -ex bt "$1" + fi + + echo +} + +try ./test + +if [ -n "$DISPLAY" -a -x test_gui ]; then + try ./test_gui +fi + exit $ERR