glcpp: Discard output of cmp when running the test suite.
authorCarl Worth <cworth@cworth.org>
Wed, 11 Aug 2010 01:27:31 +0000 (18:27 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 11 Aug 2010 01:27:31 +0000 (18:27 -0700)
We're already using the return-value of cmp to print either PASS or
FAIL and in the case of failure, we're subsequently running and
showing the output of diff. So any warnings/errors from cmp itself are
not actually needed, and can be quite confusing.

src/glsl/glcpp/tests/glcpp-test

index cfe7e9787863f7150918ec4a7af681aaa857f8a6..c09e8a96b98fdf0c22ddd52838a7c980bdb6cace 100755 (executable)
@@ -9,7 +9,7 @@ for test in *.c; do
     echo -n "Testing $test..."
     ../glcpp < $test > $test.out
     total=$((total+1))
-    if cmp $test.expected $test.out; then
+    if cmp $test.expected $test.out >/dev/null 2>&1; then
        echo "PASS"
        pass=$((pass+1))
     else