summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2010-08-11 13:06:36 -0700
committerCarl Worth <[email protected]>2010-08-11 14:38:03 -0700
commit2bcff4c879acec31ef0b39ecf04e9df41c5cbfab (patch)
tree7b7a8ed16b32fdac691eeefbbe59b6bd7c52fcaa /src
parentdcb3a2899eb6c6601317500b9fb24c29b5d28299 (diff)
glcpp-test: Capture the stderr output of the preprocessor.
This allows writing tests that verify diagnostics from the preprocessor.
Diffstat (limited to 'src')
-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 2dca848b4a1..6494d0c0e77 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"