summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-20 14:00:28 -0700
committerCarl Worth <cworth@cworth.org>2010-05-20 14:01:59 -0700
commit660bda057a0f9c83625e798c0f719080d11e9431 (patch)
tree1c4d5931ad703df22d9ce3d129518f2d6d38c0b3
parent805ea6afe66f52476094256914b7319b29972a16 (diff)
Stop ignoring whitespace while testing.
Sometime back the output of glcpp started differing from the output of "gcc -E" in the amount of whitespace in emitted. At the time, I switched the test suite to use "diff -w" to ignore this. This was a mistake since it ignores whitespace entirely. (I meant to use "diff -b" which ignores only changes in the amount of whitespace.) So bugs have since been introduced that the test suite doesn't notice. For example, glcpp is producing "twotokens" where it should be producing "two tokens". Let's stop ignoring whitespace in the test suite, which currently introduces lots of failures---some real and some spurious.
-rwxr-xr-xtests/glcpp-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/glcpp-test b/tests/glcpp-test
index 673a4f45e9..25685eeabe 100755
--- a/tests/glcpp-test
+++ b/tests/glcpp-test
@@ -5,5 +5,5 @@ for test in *.c; do
../glcpp < $test > $test.out
gcc -E $test -o $test.gcc
grep -v '^#' < $test.gcc > $test.expected
- diff -B -w -u $test.expected $test.out
+ diff -u $test.expected $test.out
done