openbsd-ports/lang/vala/patches/patch-tests_testrunner_sh

19 lines
567 B
Plaintext

$OpenBSD: patch-tests_testrunner_sh,v 1.3 2008/06/29 22:04:56 jasper Exp $
--- tests/testrunner.sh.orig Thu Jun 5 11:50:53 2008
+++ tests/testrunner.sh Sun Jun 29 23:46:34 2008
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!${LOCALBASE}/bin/bash
# testrunner.sh
#
# Copyright (C) 2006-2008 Jürg Billeter
@@ -57,7 +57,7 @@ do
CODE=1
continue
fi
- if ./$testbuild 2>&1 | tee $testbuild.err | cmp -s $testsrc.exp
+ if ./$testbuild 2>&1 | tee $testbuild.err && cmp -s $testbuild.err $testsrc.exp
then
rm $testbuild.c $testbuild.h $testbuild$exe $testbuild.err
else