mirror of https://github.com/aria2/aria2
Fix compile error without bittorrent support
parent
b9436e4d12
commit
db1106101d
|
@ -131,8 +131,6 @@ SRCS = option_processing.cc\
|
|||
AbstractSingleDiskAdaptor.cc AbstractSingleDiskAdaptor.h\
|
||||
DirectDiskAdaptor.cc DirectDiskAdaptor.h\
|
||||
MultiDiskAdaptor.cc MultiDiskAdaptor.h\
|
||||
PeerSessionResource.cc PeerSessionResource.h\
|
||||
BtRegistry.cc BtRegistry.h\
|
||||
MultiFileAllocationIterator.cc MultiFileAllocationIterator.h\
|
||||
ByteArrayDiskWriter.cc ByteArrayDiskWriter.h\
|
||||
ByteArrayDiskWriterFactory.h\
|
||||
|
@ -400,8 +398,10 @@ SRCS += PeerAbstractCommand.cc PeerAbstractCommand.h\
|
|||
PeerInitiateConnectionCommand.cc PeerInitiateConnectionCommand.h\
|
||||
PeerInteractionCommand.cc PeerInteractionCommand.h\
|
||||
Peer.cc Peer.h\
|
||||
PeerSessionResource.cc PeerSessionResource.h\
|
||||
PeerConnection.cc PeerConnection.h\
|
||||
PeerListenCommand.cc PeerListenCommand.h\
|
||||
BtRegistry.cc BtRegistry.h\
|
||||
RequestSlot.cc RequestSlot.h\
|
||||
TrackerWatcherCommand.cc TrackerWatcherCommand.h\
|
||||
PeerChokeCommand.cc PeerChokeCommand.h\
|
||||
|
|
|
@ -73,7 +73,11 @@ void Aria2ApiTest::testAddMetalink()
|
|||
KeyVals options;
|
||||
#ifdef ENABLE_METALINK
|
||||
CPPUNIT_ASSERT_EQUAL(0, addMetalink(session_, &gids, metalinkPath, options));
|
||||
#ifdef ENABLE_BITTORRENT
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)2, gids.size());
|
||||
#else // !ENABLE_BITTORRENT
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)1, gids.size());
|
||||
#endif // !ENABLE_BITTORRENT
|
||||
|
||||
gids.clear();
|
||||
options.push_back(KeyVals::value_type("file-allocation", "foo"));
|
||||
|
|
Loading…
Reference in New Issue