]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
handle getline errors/eof
authorMark Andrews <marka@isc.org>
Fri, 7 Oct 2011 21:32:35 +0000 (21:32 +0000)
committerMark Andrews <marka@isc.org>
Fri, 7 Oct 2011 21:32:35 +0000 (21:32 +0000)
bin/tests/system/dnssec/tests.sh

index 73b35d3d8a2de2462d4dc1299c43989c47610ff3..c6487011ed7c035a4228e9b175cafdce978e1eea 100644 (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");