Better asan test output
@@ -31,9 +31,11 @@ jobs:
run: |
ulimit -c unlimited -S
./picoquic_ct -n -r 1>quic_ct.txt 2>sanity.txt || QUICRESULT=$?
- echo "running picoquic_ct returns $QUICRESULT "
+ echo "running picoquic_ct returns <$QUICRESULT> "
cat sanity.txt
+ if [ ! -z ${QUICRESULT} ]; then
if [ ${QUICRESULT} != 0 ]; then exit 1; fi;
+ fi
leaked=`grep "SUMMARY: AddressSanitizer:" sanity.txt | cut -d ' ' -f 3`
previous_leak=0
if [ ! -z "$leaked" ]; then
@@ -48,7 +50,9 @@ jobs:
./picohttp_ct -n -r 1>http_ct.txt 2>sanity.txt || QUICHTTPRESULT=$?
echo "running picohttp_ct returns $QUICHTTPRESULT "
cat sanity.txt
+ if [ ! -z ${QUICHTTPRESULT} ]; then
if [ ${QUICHTTPRESULT} != 0 ]; then exit 1; fi;
+ fi
leaked=`grep "SUMMARY: AddressSanitizer:" sanity.txt | cut -d ' ' -f 3`
previous_leak=0
if [ ! -z "$leaked" ]; then
