Skip to content

Commit

Permalink
TravisCI: set core limit size to unlimited
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov committed Jan 12, 2019
1 parent 9f36dfc commit cd7baa8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cd7baa8

Please sign in to comment.