From: Reinhard Pfau Date: Sun, 19 Apr 2009 20:12:51 +0000 (+0200) Subject: some more backend round on pipe test (for slower machines...) X-Git-Tag: v0.3~32 X-Git-Url: http://developer.intra2net.com/git/?p=libasyncio;a=commitdiff_plain;h=2698300ca40144e3e8c5de2607d9f290fdbaf36c some more backend round on pipe test (for slower machines...) --- diff --git a/unittest/test_simpleio_basics.cpp b/unittest/test_simpleio_basics.cpp index 749805b..a82a75d 100644 --- a/unittest/test_simpleio_basics.cpp +++ b/unittest/test_simpleio_basics.cpp @@ -666,7 +666,7 @@ class TestSimpleioBasics : public TestFixture CPPUNIT_ASSERT_EQUAL(true, res); // do some backend cycles to empty the pipe: - for (int i=32; i-->0 && res && !pipe1.empty(); ) + for (int i=64; i-->0 && res && !pipe1.empty(); ) { res= backend->doOneStep(100); }; @@ -675,7 +675,7 @@ class TestSimpleioBasics : public TestFixture CPPUNIT_ASSERT_EQUAL(false, pipe1.opened()); // now read the remaining data until we recognize EOF: - for (int i=32; i-->0 && res && !pipe2.eof();) + for (int i=64; i-->0 && res && !pipe2.eof();) { res= backend->doOneStep(100); }