Skip to content

Commit

Permalink
tests: Add a test case that directories can't be hardlinked
Browse files Browse the repository at this point in the history
Hooray! We were actually validating this already. Just
another corner case I thought of.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Aug 20, 2024
1 parent 4c31009 commit cf07ef6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/assets/should-fail-dir-hardlink.dump
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/ 4096 40555 2 0 0 0 1633950376.0 - - -
/rootlink 4096 @40555 2 0 0 0 1633950376.0 - - -
1 change: 1 addition & 0 deletions tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ test_assets_should_fail = [
'should-fail-empty-link-name.dump',
'should-fail-dot-name.dump',
'should-fail-dotdot-name.dump',
'should-fail-dir-hardlink.dump',
]

test_assets = test_assets_small + [
Expand Down

0 comments on commit cf07ef6

Please sign in to comment.