summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-01-28 22:08:39 -0500
committerMatt Turner <mattst88@gmail.com>2012-01-30 21:09:57 -0500
commit82060adcde88eb57cc0a3b71d23f003f5637986f (patch)
treebaa625d053989eaa0aa86bcea48246b2abfeb96e /src/glsl/glcpp
parent9947656168d09f9019600fccc42ca8e0de49b83a (diff)
downloadexternal_mesa3d-82060adcde88eb57cc0a3b71d23f003f5637986f.zip
external_mesa3d-82060adcde88eb57cc0a3b71d23f003f5637986f.tar.gz
external_mesa3d-82060adcde88eb57cc0a3b71d23f003f5637986f.tar.bz2
glcpp-test: don't return failure if valgrind tests aren't run
Success was (tests-passed AND valgrind-tests-passed) but this meant that if the valgrind tests weren't run it would be considered a failure. The logic is now (tests-passed AND (!valgrind OR valgrind-tests-passed)) which lets us return success if the valgrind tests aren't run. Reviewed-by: Eric Anholt <eric@anholt.net> Tested-by: Eric Anholt <eric@anholt.net> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl/glcpp')
-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 e8f3b54..1db7523 100755
--- a/src/glsl/glcpp/tests/glcpp-test
+++ b/src/glsl/glcpp/tests/glcpp-test
@@ -72,7 +72,7 @@ if [ "$do_valgrind" = "yes" ]; then
echo "$clean/$total tests are valgrind-clean"
fi
-if [ "$pass" = "$total" ] && [ "$clean" = "$total" ]; then
+if [ "$pass" = "$total" ] && [ "$do_valgrind" != "yes" ] || [ "$pass" = "$total" ]; then
exit 0
else
exit 1