aboutsummaryrefslogtreecommitdiff
path: root/test/README.md
blob: 4c0b485c6707c5d6582695e56546004fa83a1b60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
NOTE: shell scripts driven by flatcc/test/test.sh have been ported to CMake.
use flatcc/scripts/test.sh to drive CMake tests.

Run `leakcheck.sh` and `leakcheck-full.sh` for memory checks.

To install valgrind on OS-X Yosemite use `brew install --HEAD valgrind`

For decoding valgrind error messages:
<http://derickrethans.nl/valgrind-null.html>

clang has built-in memory check, but only for `x86_64 Linux`:
<http://clang.llvm.org/docs/LeakSanitizer.html>

On OS-X Yosemite with valgrind that isn't officially supported for that
platform, a few spurious unitialized memory access errors are reported
when printing the filextension in `codegen_c.c`. and in the equivalent
builder. After inspection, nothing suggests this is an actual bug - more
likely it relates to a strnlen optimization in fprintf `"%.*s"` syntax
that valgrind doesn't catch.