There is no point really to enforce exact amount of trailing whitespace
in preprocessor output. Other preprocessors generate even less trailing
whitespace than glcpp. The less trailing whitespace, the better.
---
 src/compiler/glsl/glcpp/tests/glcpp-test | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compiler/glsl/glcpp/tests/glcpp-test 
b/src/compiler/glsl/glcpp/tests/glcpp-test
index 3945ee4..5fe53b4 100755
--- a/src/compiler/glsl/glcpp/tests/glcpp-test
+++ b/src/compiler/glsl/glcpp/tests/glcpp-test
@@ -69,12 +69,12 @@ for test in $testdir/*.c; do
     printf "Testing $test... > $out ($test.expected) "
     $glcpp $(test_specific_args $test) < $test > $out 2>&1
     total=$((total+1))
-    if cmp $test.expected $out >/dev/null 2>&1; then
+    if diff -Z -q $test.expected $out >/dev/null 2>&1; then
        echo "PASS"
        pass=$((pass+1))
     else
        echo "FAIL"
-       diff -u $test.expected $out
+       diff -Z -u $test.expected $out
     fi
 done
 
-- 
2.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to