Mesa (glsl2): glcpp: Clean up intermediate file when test suite is interrupted.
Carl Worth
cworth at kemper.freedesktop.org
Wed Aug 11 19:47:32 UTC 2010
Module: Mesa
Branch: glsl2
Commit: 8485f4d9aa6d98304bb0197dc4f1f357d81d1daa
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8485f4d9aa6d98304bb0197dc4f1f357d81d1daa
Author: Carl Worth <cworth at cworth.org>
Date: Wed Aug 11 12:46:16 2010 -0700
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.
---
src/glsl/glcpp/tests/glcpp-test | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/glsl/glcpp/tests/glcpp-test b/src/glsl/glcpp/tests/glcpp-test
index c09e8a9..2dca848 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
More information about the mesa-commit
mailing list