test_create_torrent fails when built from the release archive
graywolf opened this issue · comments
W. commented
Please provide the following information
libtorrent version (or branch): v2.0.9 tag
platform/architecture: linux/x86_64
- Download https://github.com/arvidn/libtorrent/releases/download/v2.0.9/libtorrent-rasterbar-2.0.9.tar.gz
- Build it and try to run test_create_torrent
- See this error:
Test #16: test_create_torrent ..............***Failed 0.01 sec
test: /tmp/guix-build-libtorrent-rasterbar-2.0.9.drv-0/build/test/test_create_torrent
cwd_prefix = "/tmp/guix-build-libtorrent-rasterbar-2.0.9.drv-0/build/test/test_tmp_4305_"
[/tmp/guix-build-libtorrent-rasterbar-2.0.9.drv-0/libtorrent-rasterbar-2.0.9/test/test_create_torrent.cpp.create_torrent_round_trip_empty_file]
cwd: /tmp/guix-build-libtorrent-rasterbar-2.0.9.drv-0/build/test/test_tmp_4305_8
test-case: /tmp/guix-build-libtorrent-rasterbar-2.0.9.drv-0/libtorrent-rasterbar-2.0.9/test/test_create_torrent.cpp.create_torrent_round_trip_empty_file
rnd = b80473f4
***** /tmp/guix-build-libtorrent-rasterbar-2.0.9.drv-0/libtorrent-rasterbar-2.0.9/test/test_create_torrent.cpp:170 "TEST_ERROR: check failed: "ret == 0"" *****
***** /tmp/guix-build-libtorrent-rasterbar-2.0.9.drv-0/libtorrent-rasterbar-2.0.9/test/test_create_torrent.cpp:171 "TEST_ERROR: check failed: "!ec"" *****
***** /tmp/guix-build-libtorrent-rasterbar-2.0.9.drv-0/libtorrent-rasterbar-2.0.9/test/main.cpp:520 "TEST_ERROR: Terminated with system_error: (3) [bdecode] "unexpected end of file in bencoded string"" *****
Failed to remove unit test directory: No such file or directory
For some reason it looks like test/test_torrents/v2_empty_file.torrent is not part of the source archive. Copying it from the v2.0.9 git tag into the directory extracted from the archive makes the test pass.
Arvid Norberg commented
thanks for the report!
#7612