]> git.eshelyaron.com Git - emacs.git/commitdiff
Further attempt to avoid hang in network-stream-tests
authorGlenn Morris <rgm@gnu.org>
Fri, 21 Jul 2017 18:01:12 +0000 (14:01 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 21 Jul 2017 18:01:12 +0000 (14:01 -0400)
* test/lisp/net/network-stream-tests.el (connect-to-tls-ipv6-nowait):
Limit the time we wait for the external process.

test/lisp/net/network-stream-tests.el

index e7bb3e8ccf93b5e4bfe1e543fbb2ebbc599c1674..9ee3a281c3dcf2e257dd1b1fb7ef4b840aea9c77 100644 (file)
                       (< (setq times (1+ times)) 10))
             (sit-for 0.1))
           (should proc)
-          (while (eq (process-status proc) 'connect)
-            (sit-for 0.1)))
+          (setq times 0)
+          (while (and (eq (process-status proc) 'connect)
+                      (< (setq times (1+ times)) 10))
+            (sit-for 0.1))
+          (skip-unless (not (eq (process-status proc) 'connect))))
       (if (process-live-p server) (delete-process server)))
     (setq status (gnutls-peer-status proc))
     (should (consp status))