* [PATCH 3/3] test: increase delta range for timing-sensitive test
2012-03-05 23:45 5% ` Eric Wong
@ 2012-03-05 23:47 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2012-03-05 23:47 UTC (permalink / raw)
To: kgio
This appears to be needed for Debian GNU/kFreeBSD under KVM.
---
test/test_default_wait.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/test_default_wait.rb b/test/test_default_wait.rb
index 55631fd..7137d0c 100644
--- a/test/test_default_wait.rb
+++ b/test/test_default_wait.rb
@@ -24,7 +24,7 @@ class TestDefaultWait < Test::Unit::TestCase
t0 = Time.now
assert_nil a.kgio_wait_readable(1.1)
diff = Time.now - t0
- assert_in_delta diff, 1.1, 0.05
+ assert_in_delta diff, 1.1, 0.2
b.kgio_write '.'
assert_equal a, a.kgio_wait_readable(1.1)
@@ -37,7 +37,7 @@ class TestDefaultWait < Test::Unit::TestCase
t0 = Time.now
assert_nil b.kgio_wait_writable(1.1)
diff = Time.now - t0
- assert_in_delta diff, 1.1, 0.05
+ assert_in_delta diff, 1.1, 0.2
a.kgio_read(16384)
assert_equal b, b.kgio_wait_writable(1.1)
--
1.7.9.2.358.g22243
^ permalink raw reply related [relevance 7%]
* Re: kgio, autopush test fails on Debian GNU/kFreeBSD
@ 2012-03-05 23:45 5% ` Eric Wong
2012-03-05 23:47 7% ` [PATCH 3/3] test: increase delta range for timing-sensitive test Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2012-03-05 23:45 UTC (permalink / raw)
To: kgio
375gnu <375gnu@gmail.com> wrote:
> On 3/5/12, Eric Wong <normalperson@yhbt.net> wrote:
> >> In the last assertion getsockopt returns 0. May be it's good behavior for
> >> GNU/kFreeBSD, I don't know.
> >
> > I think this problem is partially caused by eglibc/glibc failing to
> > define TCP_NOPUSH in the headers.
>
> No, /usr/include/netinet/tcp.h has definition for TCP_NOPUSH. There is a Debian
> specific patch which defines it.
OK. I've pushed out a 3 fixes to get this building on my
Debian GNU/kFreeBSD 6.0 KVM instance to "master" of
git://bogomips.org/kgio.git
accept4: require SOCK_NONBLOCK/SOCK_CLOEXEC macros
autopush: fix/enable under Debian GNU/kFreeBSD
test: increase delta range for timing-sensitive test
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-03-04 16:02 kgio, autopush test fails on Debian GNU/kFreeBSD 375gnu
2012-03-05 8:43 ` Eric Wong
2012-03-05 18:59 ` 375gnu
2012-03-05 23:45 5% ` Eric Wong
2012-03-05 23:47 7% ` [PATCH 3/3] test: increase delta range for timing-sensitive test Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/kgio.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).