From: Hleb Valoshka <375gnu@gmail.com>
To: ruby.posix.mq@librelist.com
Subject: [PATCH 3/3] Add a sleep in alarm test in current Ruby.
Date: Tue, 3 Jul 2012 23:13:50 +0300 [thread overview]
Message-ID: <1341346430-8113-3-git-send-email-375GNU@Gmail.COM> (raw)
In-Reply-To: 1341346430-8113-1-git-send-email-375GNU@Gmail.COM
Without that sleep alarms will be 0. Looks like Ruby VM issue.
---
test/test_posix_mq.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/test_posix_mq.rb b/test/test_posix_mq.rb
index 5b78c22..98feff2 100644
--- a/test/test_posix_mq.rb
+++ b/test/test_posix_mq.rb
@@ -127,6 +127,7 @@ class Test_POSIX_MQ < Test::Unit::TestCase
a = nil
assert_raises(Errno::EINTR) { a = @mq.receive }
elapsed = Time.now - t0
+ sleep 0.01 if RUBY_VERSION >= '1.9'
assert_nil a
assert elapsed >= interval, elapsed.inspect
assert elapsed < 1.10, elapsed.inspect
--
1.7.10
next prev parent reply other threads:[~2012-07-03 20:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 20:13 [PATCH 1/3] Fix call to DL::Function.new in tests Hleb Valoshka
2012-07-03 20:13 ` [PATCH 2/3] Add libc names for Debian GNU/kFreeBSD and FreeBSD " Hleb Valoshka
2012-07-03 20:13 ` Hleb Valoshka [this message]
2012-07-04 0:20 ` [PATCH 3/3] Add a sleep in alarm test in current Ruby Eric Wong
2012-07-04 0:59 ` Eric Wong
2012-07-04 13:39 ` Hleb Valoshka
2012-07-12 8:03 ` Hleb Valoshka
2012-07-12 8:09 ` Eric Wong
2012-07-12 13:46 ` Hleb Valoshka
2012-07-12 19:46 ` Eric Wong
2012-07-13 7:21 ` Eric Wong
2012-07-13 16:46 ` Hleb Valoshka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/ruby_posix_mq/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1341346430-8113-3-git-send-email-375GNU@Gmail.COM \
--to=375gnu@gmail.com \
--cc=ruby.posix.mq@librelist.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/ruby_posix_mq.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).