Mesa (glsl2): glcpp-test: Capture the stderr output of the preprocessor.
Carl Worth
cworth at kemper.freedesktop.org
Wed Aug 11 21:38:10 UTC 2010
Module: Mesa
Branch: glsl2
Commit: 2bcff4c879acec31ef0b39ecf04e9df41c5cbfab
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2bcff4c879acec31ef0b39ecf04e9df41c5cbfab
Author: Carl Worth <cworth at cworth.org>
Date: Wed Aug 11 13:06:36 2010 -0700
glcpp-test: Capture the stderr output of the preprocessor.
This allows writing tests that verify diagnostics from the preprocessor.
---
src/glsl/glcpp/tests/glcpp-test | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/glsl/glcpp/tests/glcpp-test b/src/glsl/glcpp/tests/glcpp-test
index 2dca848..6494d0c 100755
--- a/src/glsl/glcpp/tests/glcpp-test
+++ b/src/glsl/glcpp/tests/glcpp-test
@@ -9,7 +9,7 @@ clean=0
echo "====== Testing for correctness ======"
for test in *.c; do
echo -n "Testing $test..."
- ../glcpp < $test > $test.out
+ ../glcpp < $test > $test.out 2>&1
total=$((total+1))
if cmp $test.expected $test.out >/dev/null 2>&1; then
echo "PASS"
More information about the mesa-commit
mailing list