]> git.eshelyaron.com Git - emacs.git/commit
Use macro to reduce repetition in TLS tests
authorRobert Pluim <rpluim@gmail.com>
Tue, 22 Jul 2025 12:48:54 +0000 (14:48 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 25 Jul 2025 20:14:04 +0000 (22:14 +0200)
commit569ff3b49203c48dd05cf9bcc179b3cdc5bf90e5
treec8ef8ee0e5704fdbfeef6df3e4a8b906cbb285d7
parentca632e701fc63d7b0b89e80b68f6a1fe7ef581fe
Use macro to reduce repetition in TLS tests

* test/lisp/net/network-stream-tests.el (with-tls-params): New
macro, abstracts most of the boiler plate for TLS tests.
(connect-to-tls-ipv4-wait, connect-to-tls-ipv4-nowait)
(connect-to-tls-ipv6-nowait, open-network-stream-tls-wait)
(open-network-stream-tls-nowait, open-network-stream-tls)
(open-network-stream-tls-nocert)
(open-gnutls-stream-new-api-default)
(open-gnutls-stream-new-api-wait)
open-gnutls-stream-old-api-wait)
(open-gnutls-stream-new-api-nowait)
(open-gnutls-stream-old-api-nowait): Use it.

(cherry picked from commit 5cce567f20098fafa809fdefc468f493f95921fc)
test/lisp/net/network-stream-tests.el