1
0

Catch crash if any and print backtrace from every thread

This commit is contained in:
Lukas Pioch 2017-03-18 21:36:01 +01:00
parent 76c39dad0f
commit 3c3fcd60ec
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@ addons:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- gdb
script: ./CIbuild.sh

View File

@ -17,11 +17,14 @@ echo "Building..."
make -j 2;
make -j 2 test ARGS="-V";
# Create .gdbinit in home directory. Switches off the confirmation on quit
echo -e "define hook-quit\n\tset confirm off\nend\n" > ~/.gdbinit
echo "Testing..."
cd Server/;
touch apiCheckFailed.flag
if [ "$TRAVIS_CUBERITE_BUILD_TYPE" != "COVERAGE" ]; then
$CUBERITE_PATH << EOF
gdb -return-child-result -ex run -ex "bt" -ex "info threads" -ex "thread apply all bt" -ex "quit" --args $CUBERITE_PATH << EOF
load APIDump
apicheck
restart