瀏覽代碼

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.
tags/mesa-7.9-rc1
Carl Worth 15 年之前
父節點
當前提交
660bda057a
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      tests/glcpp-test

+ 1
- 1
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

Loading…
取消
儲存