diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-27 19:40:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-27 21:45:40 +0300 |
commit | cdc8a9803d664efd2afd19b6201291d351ba1ebb (patch) | |
tree | e760163b687d14ecfb376e4649cf9add1ee1ae95 | |
parent | 1533013af4db25c8eabdee64b891d0e840e193fe (diff) | |
download | mv-cdc8a9803d664efd2afd19b6201291d351ba1ebb.tar.gz mv-cdc8a9803d664efd2afd19b6201291d351ba1ebb.tar.bz2 mv-cdc8a9803d664efd2afd19b6201291d351ba1ebb.tar.xz mv-cdc8a9803d664efd2afd19b6201291d351ba1ebb.zip |
Fix core dumps parsing with gdb in runtest.sh
-rwxr-xr-x | tools/ci/scripts/runtest.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |