[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] Testing with ASan and Valgrind
From: |
Edmund Grimley Evans |
Subject: |
[Tinycc-devel] Testing with ASan and Valgrind |
Date: |
Thu, 5 Nov 2015 09:15:10 +0000 |
Last night I pushed a few commits to fix bugs uncovered by ASan and
Valgrind. Comments and criticisms are welcome.
Here's how you can repeat the tests:
# ASan:
make clean
./configure
make
cp libtcc.a libtcc.a.hide
make clean
./configure --extra-cflags="-fsanitize=address -g"
make
cp libtcc.a.hide libtcc.a
make test
# Valgrind:
make clean
./configure
make
# This is because Valgrind does floating-point arithmetic differently:
( cd tests && gcc -I.. tcctest.c && valgrind -q ./a.out > test.ref )
make test TCC="valgrind -q --leak-check=full `pwd`/tcc -B`pwd` -I`pwd`"
- [Tinycc-devel] Testing with ASan and Valgrind,
Edmund Grimley Evans <=