fixed the installation directory for the headers. The storage test now releases its files to make it work on windows.
This commit is contained in:
parent
3e39b90158
commit
991220f51a
|
@ -1,4 +1,4 @@
|
|||
nobase_pkginclude_HEADERS = libtorrent/alert.hpp \
|
||||
nobase_include_HEADERS = libtorrent/alert.hpp \
|
||||
libtorrent/alert_types.hpp \
|
||||
libtorrent/allocate_resources.hpp \
|
||||
libtorrent/bencode.hpp \
|
||||
|
|
|
@ -71,6 +71,7 @@ int test_main()
|
|||
// make sure the files have the correct size
|
||||
TEST_CHECK(file_size(initial_path() / "temp_storage" / "test1.tmp") == 17);
|
||||
TEST_CHECK(file_size(initial_path() / "temp_storage" / "test2.tmp") == 31);
|
||||
s.release_files();
|
||||
}
|
||||
|
||||
// make sure the piece_manager can identify the pieces
|
||||
|
@ -98,7 +99,8 @@ int test_main()
|
|||
|
||||
pm.read(piece, 2, 0, piece_size);
|
||||
TEST_CHECK(std::equal(piece, piece + piece_size, piece2));
|
||||
|
||||
pm.release_files();
|
||||
|
||||
remove_all(initial_path() / "temp_storage");
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue