summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-25 15:04:32 -0700
committerCarl Worth <cworth@cworth.org>2010-05-25 15:04:32 -0700
commit9fb8b7a495c9dc6f9a62cf82300fae5925af92fc (patch)
tree622648ad7c965b94608a2f4d6d05dfb9963e348f /tests
parent808401fd79eea9fa2c965f9f235a753c0cb0d920 (diff)
Make the lexer pass whitespace through (as OTHER tokens) for text lines.
With this change, we can recreate the original text-line input exactly. Previously we were inserting a space between every pair of tokens so our output had a lot more whitespace than our input. With this change, we can drop the "-b" option to diff and match the input exactly.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/glcpp-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/glcpp-test b/tests/glcpp-test
index 34cca88330..8074e47119 100755
--- a/tests/glcpp-test
+++ b/tests/glcpp-test
@@ -9,5 +9,5 @@ for test in *.c; do
gcc -E $test -o $test.gcc
# grep -v '^#' < $test.gcc > $test.expected
grep -v '^[ ]*#' < $test > $test.expected
- diff -w -u $test.expected $test.out
+ diff -u $test.expected $test.out
done