[cfe-dev] TestRunner.sh reporting inconsistent results

Ted Kremenek kremenek at apple.com
Sat Jul 19 12:37:12 PDT 2008


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 at tedbook:Preprocessor)$ ../TestRunner.sh dumptokens_phyloc.c
(kremenek at tedbook:Preprocessor)$

When I do 'make test', it reports a failure:

(kremenek at 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.




More information about the cfe-dev mailing list