aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2010-08-11 12:46:16 -0700
committerCarl Worth <[email protected]>2010-08-11 12:46:16 -0700
commit8485f4d9aa6d98304bb0197dc4f1f357d81d1daa (patch)
tree6f3571061ebd6a9da7b3dc73303cebd90db865ce /src/glsl
parent764e096647ec8c0f20ea3b5191499af806ad23f8 (diff)
glcpp: Clean up intermediate file when test suite is interrupted.
The glcpp-test script was leaving around bogus *.valgrind-errors files if a valgrind test was interrupted.
Diffstat (limited to 'src/glsl')
-rwxr-xr-xsrc/glsl/glcpp/tests/glcpp-test2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/glcpp-test b/src/glsl/glcpp/tests/glcpp-test
index c09e8a96b98..2dca848b4a1 100755
--- a/src/glsl/glcpp/tests/glcpp-test
+++ b/src/glsl/glcpp/tests/glcpp-test
@@ -1,5 +1,7 @@
#!/bin/sh
+trap 'rm $test.valgrind-errors; exit 1' INT QUIT
+
total=0
pass=0
clean=0