summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-25 14:52:43 -0700
committerCarl Worth <cworth@cworth.org>2010-05-25 14:52:43 -0700
commit808401fd79eea9fa2c965f9f235a753c0cb0d920 (patch)
treefb10baace89ff1d1c9191465795eeff18ca0e588 /tests
parent80dc60b9c3529cf438948d50b9619e8af2fad880 (diff)
Store parsed tokens as token list and print all text lines.
Still not doing any macro expansion just yet. But it should be fairly easy from here.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/glcpp-test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/glcpp-test b/tests/glcpp-test
index 868b03cce8..34cca88330 100755
--- a/tests/glcpp-test
+++ b/tests/glcpp-test
@@ -7,6 +7,7 @@ for test in *.c; do
echo "Testing $test"
../glcpp < $test > $test.out
gcc -E $test -o $test.gcc
- grep -v '^#' < $test.gcc > $test.expected
-# diff -B -u $test.expected $test.out
+# grep -v '^#' < $test.gcc > $test.expected
+ grep -v '^[ ]*#' < $test > $test.expected
+ diff -w -u $test.expected $test.out
done