mirror of https://github.com/aria2/aria2
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.ccpull/1/head
parent
62105714ef
commit
9e7a497fd9
|
@ -1,3 +1,10 @@
|
||||||
|
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
|
||||||
|
|
||||||
2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Use HEAD method to get file size from HTTP server for segmented
|
Use HEAD method to get file size from HTTP server for segmented
|
||||||
|
|
|
@ -80,6 +80,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
||||||
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||||
|
|
||||||
|
adaptor->closeFile();
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||||
|
@ -97,6 +99,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
||||||
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||||
|
|
||||||
|
adaptor->closeFile();
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||||
|
@ -115,6 +119,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
||||||
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||||
|
|
||||||
|
adaptor->closeFile();
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||||
|
@ -132,6 +138,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
||||||
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||||
|
|
||||||
|
adaptor->closeFile();
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||||
|
@ -149,6 +157,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
||||||
// Because entries[3] spans entries[4]
|
// Because entries[3] spans entries[4]
|
||||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||||
|
|
||||||
|
adaptor->closeFile();
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||||
|
@ -166,6 +176,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
||||||
CPPUNIT_ASSERT(entries[3]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(entries[3]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(entries[4]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(entries[4]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[5]->getDiskWriter().isNull());
|
||||||
|
|
||||||
|
adaptor->closeFile();
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
std::deque<SharedHandle<FileEntry> > fileEntries = createEntries();
|
||||||
|
@ -182,6 +194,8 @@ void MultiDiskAdaptorTest::testResetDiskWriterEntries()
|
||||||
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[3]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(!entries[4]->getDiskWriter().isNull());
|
||||||
CPPUNIT_ASSERT(entries[5]->getDiskWriter().isNull());
|
CPPUNIT_ASSERT(entries[5]->getDiskWriter().isNull());
|
||||||
|
|
||||||
|
adaptor->closeFile();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue