handle getline errors/eof

This commit is contained in:
Mark Andrews
2011-10-07 21:32:35 +00:00
parent 9da37b29ac
commit 17dfbab847

View File

@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.94 2011/10/06 22:11:39 marka Exp $
# $Id: tests.sh,v 1.95 2011/10/07 21:32:35 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
@@ -984,7 +984,8 @@ $SIGNER -3 - -H 10 -o example -f example.db example.db > /dev/null 2>&1
awk '/^IQF9LQTLK/ {
printf("%s", $0);
while (!match($0, "\\)")) {
getline;
if (getline <= 0)
break;
printf (" %s", $0);
}
printf("\n");