summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-06-05 21:09:46 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-06-05 21:09:46 +0200
commitcf20fa0f09c6ba7737b41d6e64764e2f8a607839 (patch)
treee3fe481c9906fe59abc0c7c5c508ece4257cb001 /tests/scripts
parentc66f5d4daa8bd81b662486b76a022db118869b5e (diff)
downloadgnutls-cf20fa0f09c6ba7737b41d6e64764e2f8a607839.tar.gz
Corrected fail() shell function. Reported by Andreas Metzler.
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/common.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh
index 18c321fa14..dd616f361c 100644
--- a/tests/scripts/common.sh
+++ b/tests/scripts/common.sh
@@ -19,6 +19,8 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
fail() {
+ PID=$1
+ shift;
echo "Failure: $1" >&2
kill $PID
exit 1