I applied Kovarththanan Rajaratnam's patch to the Preprocessor so that -dumptokens emitted proper column numbers, and his provided test case passes when TestRunner.sh is run on it directly:
(kremenek@tedbook:Preprocessor)$ ../TestRunner.sh dumptokens_phyloc.c
(kremenek@tedbook:Preprocessor)$
When I do 'make test', it reports a failure:
(kremenek@tedbook:clang)$ make -j2 test
--- Running clang tests ---
..............................................
---- CodeGen/long-double-x86.c failed ----
............................................................................
---- Preprocessor/dumptokens_phyloc.c failed ----
............................................................................................................................................................................................................................................................................................................................................................
The long-double-x86.c failure is another story (I just started seeing that one).
Any thoughts? Why is 'make test' reporting a failure here when TestRunner.sh does not? Incidentally, the test dumptokens_phyloc.c does the following:
clang -dumptokens dumptokens_phyloc.c 2>&1 | grep "PhysLoc=[_.a-zA-Z]*:3:20"
I echoed the exit status:
clang -dumptokens dumptokens_phyloc.c 2>&1 | grep "PhysLoc=[_.a-zA-Z]*:3:20" ; echo $?
and got 0.