Closed
Description
Describe the bug
hard_link_count test logic is wrong on BTRFS.
The links counter is always equal to 1 (https://unix.stackexchange.com/a/618726).
Error:
40: /home/.../3rdparty/ghc-filesystem/src/test/filesystem_test.cpp:2037: FAILED:
40: CHECK( fs::hard_link_count(t.path()) == 2 )
40: with expansion:
40: 1 == 2
40:
40: /home/.../3rdparty/ghc-filesystem/src/test/filesystem_test.cpp:2039: FAILED:
40: CHECK( fs::hard_link_count(t.path()) == 3 )
40: with expansion:
40: 1 == 3
To Reproduce
Run test on BTRFS.