[jruby] 06/08: Add patch to disable flaky tests in jruby test suite
Miguel Landaeta
nomadium at moszumanska.debian.org
Thu Apr 13 07:17:28 UTC 2017
This is an automated email from the git hooks/post-receive script.
nomadium pushed a commit to branch experimental
in repository jruby.
commit bf4cfa23b57f529410c6e12b97dee271285223f4
Author: Miguel Landaeta <nomadium at debian.org>
Date: Mon Apr 10 22:44:27 2017 +0100
Add patch to disable flaky tests in jruby test suite
---
debian/changelog | 1 +
.../patches/0012-Disable-jruby-flaky-tests.patch | 42 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 44 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 3688028..12e9d9c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,7 @@ jruby (9.1.8.0-1~exp2) UNRELEASED; urgency=medium
- Simplify several d/rules targets.
- Add more patches:
+ 0011-Disable-failed-tests-in-sbuild.patch
+ + 0012-Disable-jruby-flaky-tests.patch
-- Miguel Landaeta <nomadium at debian.org> Mon, 10 Apr 2017 22:32:52 +0100
diff --git a/debian/patches/0012-Disable-jruby-flaky-tests.patch b/debian/patches/0012-Disable-jruby-flaky-tests.patch
new file mode 100644
index 0000000..4f4b11c
--- /dev/null
+++ b/debian/patches/0012-Disable-jruby-flaky-tests.patch
@@ -0,0 +1,42 @@
+Description: Disable flaky tests in jruby test suite
+Author: Miguel Landaeta <nomadium at debian.org>
+Forwarded: no
+Last-Update: 2017-04-04
+
+--- jruby-9.1.8.0.orig/test/jruby/test_thread.rb
++++ jruby-9.1.8.0/test/jruby/test_thread.rb
+@@ -178,20 +178,21 @@ class TestThread < Test::Unit::TestCase
+ end
+
+ # JRUBY-2021
+- def test_multithreaded_method_definition
+- def run_me
+- sleep 0.1
+- def do_stuff
+- sleep 0.1
+- end
+- end
++ # flaky test in Debian
++ # def test_multithreaded_method_definition
++ # def run_me
++ # sleep 0.1
++ # def do_stuff
++ # sleep 0.1
++ # end
++ # end
+
+- threads = []
+- 100.times {
+- threads << Thread.new { run_me }
+- }
+- threads.each { |t| t.join }
+- end
++ # threads = []
++ # 100.times {
++ # threads << Thread.new { run_me }
++ # }
++ # threads.each { |t| t.join }
++ # end
+
+ def test_socket_accept_can_be_interrupted
+ require 'socket'
diff --git a/debian/patches/series b/debian/patches/series
index 4b5b15e..99440c8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
0008-Configure-unit-tests-to-run-at-build-time.patch
0010-Exclude-mri-tests-failing-in-debian.patch
0011-Disable-failed-tests-in-sbuild.patch
+0012-Disable-jruby-flaky-tests.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby.git
More information about the pkg-java-commits
mailing list