fix test_torrent_info on windows

This commit is contained in:
Arvid Norberg 2015-01-15 03:42:08 +00:00
parent 9bfbb8a52a
commit 81ab22d3d8
1 changed files with 4 additions and 1 deletions

View File

@ -94,8 +94,11 @@ void test_storage()
void test_copy()
{
using namespace libtorrent;
boost::shared_ptr<torrent_info> a(boost::make_shared<torrent_info>(
libtorrent::combine_path("..", libtorrent::combine_path("test_torrents", "sample.torrent"))));
combine_path(parent_path(current_working_directory())
, combine_path("test_torrents", "sample.torrent"))));
boost::shared_ptr<torrent_info> b(boost::make_shared<torrent_info>(*a));