libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

test_copy_file fails in CI build for Void Linux

Open MIvanchev opened this issue 1 year ago • 6 comments

libtorrent version 2.0.10: platform/architecture: x86_64 compiler and compiler version: GCC

See here

       Start  14: test_copy_file
 14/106 Test  #14: test_copy_file ...................***Failed    1.02 sec
test: /builddir/libtorrent-rasterbar-2.0.10/build/test/test_copy_file
cwd_prefix = "/builddir/libtorrent-rasterbar-2.0.10/build/test/test_tmp_6529_"
[/builddir/libtorrent-rasterbar-2.0.10/test/test_copy_file.cpp.sparse_file]

cwd: /builddir/libtorrent-rasterbar-2.0.10/build/test/test_tmp_6529_1
test-case: /builddir/libtorrent-rasterbar-2.0.10/test/test_copy_file.cpp.sparse_file
rnd = b80473f4
filesystem: 2035054128
original_size: 8192

***** /builddir/libtorrent-rasterbar-2.0.10/test/test_copy_file.cpp:200 "TEST_ERROR: check failed: "original_size >= 50'000'000"" *****

copy_size: 8192


[/builddir/libtorrent-rasterbar-2.0.10/test/test_copy_file.cpp.basic      ] ***PASS***
[/builddir/libtorrent-rasterbar-2.0.10/test/test_copy_file.cpp.sparse_file] 1 FAILURES

I'm trying to package 2.0.10 for Void Linux but hitting this test failure. Info on how to fix/disable the test would be much appreciated! :)

MIvanchev avatar Jul 20 '24 08:07 MIvanchev

my guess is that there's some issue related to using "overlayfs".

arvidn avatar Jul 23 '24 08:07 arvidn

@arvidn How can I disable it?

MIvanchev avatar Jul 23 '24 10:07 MIvanchev

from my reading, it seems you may be running a "LiveCD" installation, with the underlying operating system mounted as read-only, and then an overlayfs with a writeable partition.

arvidn avatar Jul 24 '24 07:07 arvidn

I am more than willing to disable the test instead of investing time to fix it... is there a command line switch or something?

MIvanchev avatar Jul 24 '24 08:07 MIvanchev

I believe the CMakeList.txt uses glob to pick up the tests, so just removing the file would do it. When building with boost-build, you can remove the line in tests/Jamfile mentioning test_copy_file.cpp.

arvidn avatar Jul 25 '24 17:07 arvidn

I think this PR would fix it. would you mind testing it on your build image? https://github.com/arvidn/libtorrent/pull/7715

arvidn avatar Jul 25 '24 17:07 arvidn

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 14:04 stale[bot]