An interpreter of object-oriented scripting language
Go to file
Jun Aruga 1aa8223a04 Give an option to increase the timeout in tests.
Because setting the option makes some tests stable that are currently randomly
failing with error on especially s390x and aarch64.

We observed the failing tests are calling `assert_in_out_err` method
calling `invoke_ruby` calling method.

Then when the `th_stdout.join(timeout)` or `th_stderr.join(timeout)` returns
`nil` as thread timeout in `invoke_ruby` method, it causes the error. [1][2]

The `test_timeout_scale` macro is to set the environment variable
`RUBY_TEST_TIMEOUT_SCALE` to increase the timeout in `apply_timeout_scale`
method as <new timeout> = <timeout> * <timeout scale>.

As an example, `TestBugReporter#test_bug_reporter_add` test's
maximum thread timeout was 56+ seconds for the default timeout 10 seconds. [3]
In this case setting `RUBY_TEST_TIMEOUT_SCALE=6` (6 * 10 = 60) is good enough
for 56+ seconds.

[1] https://github.com/ruby/ruby/blob/v2_7_1/tool/lib/envutil.rb#L149
[2] https://bugs.ruby-lang.org/issues/16492#note-8
[3] https://bugs.ruby-lang.org/issues/16492#note-4

Related: rhbz#1947938
2021-04-21 10:55:24 +02:00
.gitignore Merge Fedora master. 2018-03-12 17:55:43 +01:00
libruby.stp Initial package 2016-02-17 19:05:04 +01:00
macros.ruby Merge Fedora master. 2018-03-12 17:55:43 +01:00
macros.rubygems Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
operating_system.rb Update to Ruby 2.5.5. 2019-04-18 07:39:17 +02:00
ruby-1.9.3-mkmf-verbose.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.1.0-Enable-configuration-of-archlibdir.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.1.0-always-use-i386.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.1.0-custom-rubygems-location.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.3.0-ruby_version.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.3.1-Rely-on-ldd-to-detect-glibc.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.6.0-config-support-include-directive.patch Update to Ruby 2.6.3 by merging Fedora master branch (commit: 1cc2a49) 2019-06-13 16:56:02 +02:00
ruby-2.7.0-Initialize-ABRT-hook.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.7.0-Remove-RubyGems-dependency.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.7.1-Timeout-the-test_bug_reporter_add-witout-raising-err.patch Avoid possible timeout errors in TestBugReporter#test_bug_reporter_add. 2021-04-21 10:55:15 +02:00
ruby-2.8.0-Brace-the-fact-that-lchmod-can-EOPNOTSUPP.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.8.0-Moved-not-implemented-method-tests.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-2.8.0-remove-unneeded-gem-require-for-ipaddr.patch Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
ruby-exercise.stp Initial package 2016-02-17 19:05:04 +01:00
ruby.spec Give an option to increase the timeout in tests. 2021-04-21 10:55:24 +02:00
rubygems-3.1.3-Fix-I-require-priority.patch Fix `require` behavior allowing to load libraries multiple times. 2020-06-26 17:33:15 +02:00
rubygems-3.1.3-Fix-correctness-and-performance-regression-in-require.patch Fix `require` behavior allowing to load libraries multiple times. 2020-06-26 17:33:15 +02:00
rubygems-3.1.3-Improve-require.patch Fix `require` behavior allowing to load libraries multiple times. 2020-06-26 17:33:15 +02:00
rubygems-3.1.3-Revert-Exclude-empty-suffix-from-I-require-loop.patch Fix `require` behavior allowing to load libraries multiple times. 2020-06-26 17:33:15 +02:00
rubygems.attr Merge Fedora master. 2018-03-12 17:55:43 +01:00
rubygems.con Merge Fedora master. 2018-03-12 17:55:43 +01:00
rubygems.prov Update to Ruby 2.6.3 by merging Fedora master branch (commit: 1cc2a49) 2019-06-13 16:56:02 +02:00
rubygems.req Update to Ruby 2.6.3 by merging Fedora master branch (commit: 1cc2a49) 2019-06-13 16:56:02 +02:00
sources Update to Ruby 2.7.1 by merging Fedora master branch (commit: 2981648) 2020-05-30 06:49:49 +02:00
test_abrt.rb Initial package 2016-02-17 19:05:04 +01:00
test_systemtap.rb Fix and enhance systemtap tests 2016-08-03 18:02:20 +02:00