* [PATCH 0/2] test fixes for Debian 9
@ 2018-07-03 11:02 Eric Wong
2018-07-03 11:02 ` [PATCH 1/2] test/server_helper: describe reason for termination Eric Wong
2018-07-03 11:02 ` [PATCH 2/2] test/test_ssl: set SSLContext#security_level=0 Eric Wong
0 siblings, 2 replies; 3+ messages in thread
From: Eric Wong @ 2018-07-03 11:02 UTC (permalink / raw)
To: yahns-public
Yes I'm slow to upgrade :x
Eric Wong (2):
test/server_helper: describe reason for termination
test/test_ssl: set SSLContext#security_level=0
test/server_helper.rb | 2 +-
test/test_ssl.rb | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] test/server_helper: describe reason for termination
2018-07-03 11:02 [PATCH 0/2] test fixes for Debian 9 Eric Wong
@ 2018-07-03 11:02 ` Eric Wong
2018-07-03 11:02 ` [PATCH 2/2] test/test_ssl: set SSLContext#security_level=0 Eric Wong
1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2018-07-03 11:02 UTC (permalink / raw)
To: yahns-public
A test failure was causing SIGQUIT to be delivered before
the forked process had a chance to hit trap(:QUIT).
---
test/server_helper.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/server_helper.rb b/test/server_helper.rb
index 91d7208..b794ee6 100644
--- a/test/server_helper.rb
+++ b/test/server_helper.rb
@@ -31,7 +31,7 @@ def poke_until_dead(pid)
def quit_wait(pid)
pid or return
- err = $!
+ err = $! and warn "Terminating on #{err.inspect} (#{err.class})"
Process.kill(:QUIT, pid)
_, status = Timeout.timeout(10) { Process.waitpid2(pid) }
assert status.success?, status.inspect
--
EW
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] test/test_ssl: set SSLContext#security_level=0
2018-07-03 11:02 [PATCH 0/2] test fixes for Debian 9 Eric Wong
2018-07-03 11:02 ` [PATCH 1/2] test/server_helper: describe reason for termination Eric Wong
@ 2018-07-03 11:02 ` Eric Wong
1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2018-07-03 11:02 UTC (permalink / raw)
To: yahns-public
This is apparently needed to pass tests with a newer version of
OpenSSL found in Debian 9
---
test/test_ssl.rb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/test_ssl.rb b/test/test_ssl.rb
index 92be542..7909094 100644
--- a/test/test_ssl.rb
+++ b/test/test_ssl.rb
@@ -41,6 +41,7 @@ def teardown
def ssl_client(host, port)
ctx = OpenSSL::SSL::SSLContext.new
ctx.ciphers = "ADH"
+ ctx.security_level = 0
s = TCPSocket.new(host, port)
ssl = OpenSSL::SSL::SSLSocket.new(s, ctx)
ssl.connect
@@ -51,6 +52,7 @@ def ssl_client(host, port)
def srv_ctx
ctx = OpenSSL::SSL::SSLContext.new
ctx.ciphers = "ADH"
+ ctx.security_level = 0
ctx.tmp_dh_callback = proc { TEST_KEY_DH1024 }
ctx
end
--
EW
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-03 11:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-03 11:02 [PATCH 0/2] test fixes for Debian 9 Eric Wong
2018-07-03 11:02 ` [PATCH 1/2] test/server_helper: describe reason for termination Eric Wong
2018-07-03 11:02 ` [PATCH 2/2] test/test_ssl: set SSLContext#security_level=0 Eric Wong
Code repositories for project(s) associated with this public inbox
http://yhbt.net/yahns.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).