mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 10:55:00 +00:00
Fix compile error without bittorrent support
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user