From eaca495cf99c2311bfa9ecc458f43551b511b6ed Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Aug 2015 23:39:41 +0300 Subject: Detect other sanitizer run time errors. --- travis.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/travis.sh b/travis.sh index 31a3f330a..1b97b7666 100755 --- a/travis.sh +++ b/travis.sh @@ -92,7 +92,15 @@ EOF ARGS="--load-script npc/dev/test.txt " ARGS="--load-plugin script_mapquit $ARGS --load-script npc/dev/ci_test.txt" echo "Running Hercules with command line: ./map-server --run-once $ARGS" - ./map-server --run-once $ARGS || aborterror "Test failed." + ASAN_OPTIONS=detect_leaks=0 ./map-server --run-once $ARGS 2>runlog.txt || aborterror "Test failed." + export teststr=$(cat runlog.txt) + if [[ -n "${teststr}" ]]; then + echo "Sanitizer errors found." + cat runlog.txt + aborterror "Sanitize errors found." + else + echo "No sanitizer errors found." + fi ;; getplugins) echo "Cloning plugins repository..." -- cgit v1.2.3-60-g2f50