windows fix for unit test

This commit is contained in:
Arvid Norberg 2008-03-21 09:00:54 +00:00
parent f6a3e42ae7
commit c21a8a8fae
1 changed files with 4 additions and 0 deletions

View File

@ -302,7 +302,11 @@ int test_main()
std::cerr << ti.name() << std::endl;
TEST_CHECK(ti.name() == "test1");
#ifdef TORRENT_WINDOWS
info["name.utf-8"] = "c:/test1/test2/test3";
#else
info["name.utf-8"] = "/test1/test2/test3";
#endif
torrent["info"] = info;
torrent_info ti2(torrent);
std::cerr << ti2.name() << std::endl;