File size checks fails and I haven’t figured out why, but next I’d look into how posix_fallocate
works on alpine linux.
Log:
0$ cat /etc/alpine-release
13.9.2
2
3$ git log --oneline -1
4e45b7f20e Merge [#15618](/bitcoin-bitcoin/15618/): refactor: Remove unused function
5
6$ ./src/test/test_bitcoin -t flatfile_tests
7Running 4 test cases...
8Version using posix_fallocate
9test/flatfile_tests.cpp(94): error: in "flatfile_tests/flatfile_allocate": check fs::file_size(seq.FileName(FlatFilePos(0, 0))) == 100 has failed [0 != 100]
10test/flatfile_tests.cpp(98): error: in "flatfile_tests/flatfile_allocate": check fs::file_size(seq.FileName(FlatFilePos(0, 99))) == 100 has failed [0 != 100]
11Version using posix_fallocate
12test/flatfile_tests.cpp(102): error: in "flatfile_tests/flatfile_allocate": check fs::file_size(seq.FileName(FlatFilePos(0, 99))) == 200 has failed [0 != 200]
13Version using posix_fallocate
14test/flatfile_tests.cpp(116): error: in "flatfile_tests/flatfile_flush": check fs::file_size(seq.FileName(FlatFilePos(0, 1))) == 100 has failed [0 != 100]
15
16*** 4 failures are detected in the test module "Bitcoin Core Test Suite"