2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Excluded testLoad_compat() and testLoad_nonBt_compat() when
	compiled on big endian systems because test .aria2 files are
	made for little	endian systems.
	* test/DefaultBtProgressInfoFileTest.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-11-18 11:28:04 +00:00
parent 091dad70cc
commit a38e367f7f
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
on big endian systems because test .aria2 files are made for little
endian systems.
* test/DefaultBtProgressInfoFileTest.cc
2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Dropped ares support.

View File

@ -90,6 +90,9 @@ CPPUNIT_TEST_SUITE_REGISTRATION(DefaultBtProgressInfoFileTest);
#ifdef ENABLE_BITTORRENT
// Because load.aria2 is made for little endian systems, exclude
// testLoad_compat() for big endian systems.
#ifndef WORDS_BIGENDIAN
void DefaultBtProgressInfoFileTest::testLoad_compat()
{
initializeMembers(1024, 81920);
@ -140,6 +143,7 @@ void DefaultBtProgressInfoFileTest::testLoad_compat()
CPPUNIT_ASSERT_EQUAL((size_t)2, piece2->getIndex());
CPPUNIT_ASSERT_EQUAL((size_t)512, piece2->getLength());
}
#endif // !WORDS_BIGENDIAN
void DefaultBtProgressInfoFileTest::testLoad()
{
@ -312,6 +316,9 @@ void DefaultBtProgressInfoFileTest::testSave()
#endif // ENABLE_BITTORRENT
// Because load-nonBt.aria2 is made for little endian systems, exclude
// testLoad_nonBt_compat() for big endian systems.
#ifndef WORDS_BIGENDIAN
void DefaultBtProgressInfoFileTest::testLoad_nonBt_compat()
{
initializeMembers(1024, 81920);
@ -355,6 +362,7 @@ void DefaultBtProgressInfoFileTest::testLoad_nonBt_compat()
CPPUNIT_ASSERT_EQUAL((size_t)2, piece2->getIndex());
CPPUNIT_ASSERT_EQUAL((size_t)512, piece2->getLength());
}
#endif // !WORDS_BIGENDIAN
void DefaultBtProgressInfoFileTest::testLoad_nonBt()
{