diff --git a/test/test_torrent_info.cpp b/test/test_torrent_info.cpp index 3f217033d..4ffc6c462 100644 --- a/test/test_torrent_info.cpp +++ b/test/test_torrent_info.cpp @@ -94,8 +94,11 @@ void test_storage() void test_copy() { + using namespace libtorrent; + boost::shared_ptr a(boost::make_shared( - 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 b(boost::make_shared(*a));