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:
Arvid Norberg 2006-06-25 14:37:30 +00:00
parent 3e39b90158
commit 991220f51a
2 changed files with 4 additions and 2 deletions

View File

@ -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 \

View File

@ -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;