summaryrefslogtreecommitdiff
path: root/tools/ci/scripts
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-27 19:40:11 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-27 21:45:40 +0300
commitcdc8a9803d664efd2afd19b6201291d351ba1ebb (patch)
treee760163b687d14ecfb376e4649cf9add1ee1ae95 /tools/ci/scripts
parent1533013af4db25c8eabdee64b891d0e840e193fe (diff)
downloadplus-cdc8a9803d664efd2afd19b6201291d351ba1ebb.tar.gz
plus-cdc8a9803d664efd2afd19b6201291d351ba1ebb.tar.bz2
plus-cdc8a9803d664efd2afd19b6201291d351ba1ebb.tar.xz
plus-cdc8a9803d664efd2afd19b6201291d351ba1ebb.zip
Fix core dumps parsing with gdb in runtest.sh
Diffstat (limited to 'tools/ci/scripts')
-rwxr-xr-xtools/ci/scripts/runtest.sh3
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