[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/qca/unittest/filewatchunittest
From:       Justin Karneges <infiniti () affinix ! com>
Date:       2008-05-20 0:40:51
Message-ID: 1211244051.692566.10753.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 810092 by infiniti:

flush after writes, otherwise buffering may prevent the file system 
events


 M  +3 -0      filewatchunittest.cpp  


--- trunk/kdesupport/qca/unittest/filewatchunittest/filewatchunittest.cpp #810091:810092
@@ -58,6 +58,7 @@
 
     tempFile->open();
     tempFile->write("foo");
+    tempFile->flush();
     QTest::qWait(7000);
     QCOMPARE( spy.count(), 1 );
 
@@ -68,10 +69,12 @@
 
     tempFile->open();
     tempFile->write("foo");
+    tempFile->flush();
     QTest::qWait(7000);
     QCOMPARE( spy.count(), 2 );
 
     tempFile->write("bar");
+    tempFile->flush();
     QTest::qWait(7000);
     QCOMPARE( spy.count(), 3 );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic