mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 21:47:37 +03:00
2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Closed files after the test cases in MultiDiskWriterTest:: testResetDiskWriterEntries(). This will fix the unit test error in mingw32 build. * test/MultiDiskWriterTest.cc
This commit is contained in:
parent
62105714ef
commit
9e7a497fd9
2 changed files with 21 additions and 0 deletions
|
@ -80,6 +80,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
|||
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||
|
||||
adaptor->closeFile();
|
||||
}
|
||||
{
|
||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||
|
@ -97,6 +99,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
|||
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||
|
||||
adaptor->closeFile();
|
||||
}
|
||||
{
|
||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||
|
@ -115,6 +119,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
|||
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||
|
||||
adaptor->closeFile();
|
||||
}
|
||||
{
|
||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||
|
@ -132,6 +138,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
|||
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||
|
||||
adaptor->closeFile();
|
||||
}
|
||||
{
|
||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||
|
@ -149,6 +157,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
|||
// Because entries[3] spans entries[4]
|
||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||
|
||||
adaptor->closeFile();
|
||||
}
|
||||
{
|
||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||
|
@ -166,6 +176,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
|||
CPPUNIT_ASSERT(entries[3]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(entries[4]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||
|
||||
adaptor->closeFile();
|
||||
}
|
||||
{
|
||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||
|
@ -182,6 +194,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
|||
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||
CPPUNIT_ASSERT(entries[5]->getDiskWriter().isNull());
|
||||
|
||||
adaptor->closeFile();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue