Skip to content

chown: restrict no-dereference symlink ctime test to Linux#12556

Merged
sylvestre merged 2 commits into
uutils:mainfrom
rossilor95:fix-test-chown-no-recursive-ln-dir
Jun 3, 2026
Merged

chown: restrict no-dereference symlink ctime test to Linux#12556
sylvestre merged 2 commits into
uutils:mainfrom
rossilor95:fix-test-chown-no-recursive-ln-dir

Conversation

@rossilor95
Copy link
Copy Markdown
Contributor

Fixes #12546

test_chown_no_dereference_symlink_to_dir fails on OpenBSD CI.

The test chowns a symlink to its current owner (a no-op) and asserts the
symlink's ctime advanced. Linux bumps ctime on a same-owner chown;
while OpenBSD doesn't, so the test fails.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

GNU testsuite comparison:

Note: The gnu test tests/expand/bounded-memory is now being skipped but was previously passing.
Note: The gnu test tests/rm/many-dir-entries-vs-OOM is now being skipped but was previously passing.
Congrats! The gnu test tests/seq/seq-epipe is now passing!

@rossilor95 rossilor95 force-pushed the fix-test-chown-no-recursive-ln-dir branch from af8b172 to 3ca9ee0 Compare June 1, 2026 14:17
Comment thread tests/by-util/test_chown.rs Outdated

#[test]
#[cfg(unix)]
#[cfg(target_os = "linux")]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we want not OpenBSD as unix implies mac and it works there

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your review! I applied the change, should be correct now

@rossilor95 rossilor95 force-pushed the fix-test-chown-no-recursive-ln-dir branch from 3ca9ee0 to fa6cbd2 Compare June 3, 2026 14:50
The test chowns a symlink to its current owner (a no-op) and asserts the
symlink's ctime advanced. Most unix systems (including Linux and macOS)
bump ctime on a same-owner lchown, but OpenBSD does not, so the assertion
fails there.

Gate the test (and its MetadataExt import) behind
cfg(all(unix, not(target_os = "openbsd"))).
@sylvestre sylvestre merged commit cfc6457 into uutils:main Jun 3, 2026
170 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openbsd: test_chown_no_dereference_symlink_to_dir failure

2 participants