aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2010-08-10 18:27:31 -0700
committerCarl Worth <[email protected]>2010-08-10 18:27:31 -0700
commit9b7fd2099f926b9cc187382ca75eb8dedf3d37ca (patch)
treee8f3d86fb843183d7907b00b639fc063c69fa93b
parent4f9a64407c948a7a46d23e8d4f7caae6d0e83232 (diff)
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.
-rwxr-xr-xsrc/glsl/glcpp/tests/glcpp-test2
1 files changed, 1 insertions, 1 deletions
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