yahns Ruby server user/dev discussion
 help / color / Atom feed
* [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	[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	[flat|nested] 3+ messages in thread

end of thread, back to index

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

yahns Ruby server user/dev discussion

Archives are clonable:
	git clone --mirror https://yhbt.net/yahns-public
	git clone --mirror http://ou63pmih66umazou.onion/yahns-public

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.yahns
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.yahns

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox