From cdc8a9803d664efd2afd19b6201291d351ba1ebb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Apr 2017 19:40:11 +0300 Subject: Fix core dumps parsing with gdb in runtest.sh --- tools/ci/scripts/runtest.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/ci/scripts') diff --git a/tools/ci/scripts/runtest.sh b/tools/ci/scripts/runtest.sh index 64b27d453..2c5a8a012 100755 --- a/tools/ci/scripts/runtest.sh +++ b/tools/ci/scripts/runtest.sh @@ -2,6 +2,7 @@ export SDL_VIDEODRIVER="dummy" ulimit -c unlimited -S +ulimit -c unlimited rm -rf core* ./src/manaplus --renderer=0 >logs/run.log 2>&1 & @@ -13,6 +14,8 @@ if [ "$?" != 0 ]; then echo "Error: process look like crashed" cat logs/run.log echo "Run with gdb" + cp ./src/manaplus ./logs/ + cp -r core* ./logs/ COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1) if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" ./src/manaplus -ex "thread apply all bt" -ex "set pagination 0" -batch -- cgit v1.2.3-70-g09d2