From: Carl Worth Date: Wed, 11 Aug 2010 01:27:31 +0000 (-0700) Subject: glcpp: Discard output of cmp when running the test suite. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b7fd2099f926b9cc187382ca75eb8dedf3d37ca;p=mesa.git glcpp: Discard output of cmp when running the test suite. 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. --- diff --git a/src/glsl/glcpp/tests/glcpp-test b/src/glsl/glcpp/tests/glcpp-test index cfe7e978786..c09e8a96b98 100755 --- a/src/glsl/glcpp/tests/glcpp-test +++ b/src/glsl/glcpp/tests/glcpp-test @@ -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