From cd7baa8ea4c2a6f662d814528d9c1970760f73eb Mon Sep 17 00:00:00 2001 From: Iakov 'Jake' Kirilenko Date: Sat, 12 Jan 2019 16:22:34 +0300 Subject: [PATCH] TravisCI: set core limit size to unlimited --- .travis/script.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.travis/script.sh b/.travis/script.sh index 6bbe8ece5..985691ae4 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -36,4 +36,16 @@ $EXECUTOR bash -lc "{ [ -r /root/.bashrc ] && source /root/.bashrc || true ; } ; && make -k -j2 \ && cd bin/x86-$CONFIG && ls " -$EXECUTOR env DISPLAY=:0 LSAN_OPTIONS='suppressions=asan.supp fast_unwind_on_malloc=0' sh -c 'cd bin/x86-$CONFIG && for t in trikKernelTests trikCameraPhotoTests trikCommunicatorTests trikScriptRunnerTests ; do ./$t$SUFFIX || { errCode=$? ; [ -e core ] && gdb ./$t$SUFFIX core -ex "thread apply all bt" -ex "quit" || true ; rm -f core ; ( exit $errCode ) ; } ; done' +for t in trikKernelTests trikCameraPhotoTests trikCommunicatorTests trikScriptRunnerTests + do + $EXECUTOR env DISPLAY=:0 LSAN_OPTIONS='suppressions=asan.supp fast_unwind_on_malloc=0' sh -c \ + "cd bin/x86-$CONFIG && \ + { \ + errCode=0 ; \ + ulimit -c unlimited ; \ + ./$t$SUFFIX || errCode=\$? ; \ + [ $TRAVIS_OS_NAME == linux -a -e core ] && gdb ./$t$SUFFIX core -ex 'thread apply all bt' -ex 'quit' || true ; \ + rm -f core ; \ + ( exit \$errCode ) ; \ + } " + done