Skip to content

Conversation

@andrykonchin
Copy link
Member

@andrykonchin andrykonchin commented Dec 30, 2022

The issue was reported here truffleruby/truffleruby#2800.

It happens that all the test cases in tests/openssl/test_engine.rb fail with error Timeout::Error: execution of assert_separately expired on TruffleRuby head.

Timeout is caused by recursive requiring and auto-running the tests/openssl/test_engine.rb file.

def with_openssl(code, **opts)
assert_separately([{ "OSSL_MDEBUG" => nil }, "-ropenssl"], <<~"end;", **opts)
require #{__FILE__.dump}
include OpenSSL::TestEngine::Utils
#{code}
end;
end

Looks like the purpose of this require is making available in the forked process some helpers defined in the test file.

The fix repairs a mechanism to disable auto-running tests in a forked process. Test::Unit::Runner isn't available and looks like is a part of CRuby's own test infrastructure (it's defined here).

@hsbt
Copy link
Member

hsbt commented Jan 4, 2023

I submit another fixes for this at #593

@rhenium rhenium closed this in #593 Jan 4, 2023
@andrykonchin andrykonchin deleted the fix-tests-timeout-on-truffleruby branch January 4, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants