Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mv: 'mv source hardlink' should fail #4831

Merged
merged 5 commits into from
May 8, 2023
Merged

Conversation

sylvestre
Copy link
Contributor

fixes: tests/mv/force.sh

@github-actions
Copy link

github-actions bot commented May 6, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/mv/force is no longer failing!
Congrats! The gnu test tests/mv/i-4 is no longer failing!
Congrats! The gnu test tests/mv/symlink-onto-hardlink is no longer failing!

@sylvestre
Copy link
Contributor Author

Congrats! The gnu test tests/mv/force is no longer failing!
Congrats! The gnu test tests/mv/i-4 is no longer failing!
Congrats! The gnu test tests/mv/symlink-onto-hardlink is no longer failing!

Oh, it is unexpected :)

@sylvestre sylvestre requested review from tertsdiepraam and cakebaker and removed request for tertsdiepraam May 6, 2023 10:00
Copy link
Contributor

@cakebaker cakebaker left a comment

Choose a reason for hiding this comment

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

The functionality itself looks fine. However, there is a unresolved import 'uucore::fs' error when running cargo test --features "mv" --no-default-features. It can be fixed by adding features=["fs"] to mv's Cargo.toml.

@sylvestre sylvestre force-pushed the mv-hardlink branch 2 times, most recently from 2cdfff5 to 9092bb5 Compare May 7, 2023 18:03
@github-actions
Copy link

github-actions bot commented May 7, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/mv/force is no longer failing!
Congrats! The gnu test tests/mv/hard-4 is no longer failing!
Congrats! The gnu test tests/mv/i-4 is no longer failing!
Congrats! The gnu test tests/mv/symlink-onto-hardlink is no longer failing!
Congrats! The gnu test tests/tail-2/inotify-dir-recreate is no longer failing!

1 similar comment
@github-actions
Copy link

github-actions bot commented May 7, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/mv/force is no longer failing!
Congrats! The gnu test tests/mv/hard-4 is no longer failing!
Congrats! The gnu test tests/mv/i-4 is no longer failing!
Congrats! The gnu test tests/mv/symlink-onto-hardlink is no longer failing!
Congrats! The gnu test tests/tail-2/inotify-dir-recreate is no longer failing!

@sylvestre sylvestre requested a review from cakebaker May 7, 2023 21:03
@github-actions
Copy link

github-actions bot commented May 7, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/mv/force is no longer failing!
Congrats! The gnu test tests/mv/hard-4 is no longer failing!
Congrats! The gnu test tests/mv/i-4 is no longer failing!
Congrats! The gnu test tests/mv/symlink-onto-hardlink is no longer failing!

touch a
ln a b
./target/debug/coreutils mv --backup=simple a b

GNU: tests/mv/hard-4.sh
@github-actions
Copy link

github-actions bot commented May 8, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/mv/force is no longer failing!
Congrats! The gnu test tests/mv/hard-4 is no longer failing!
Congrats! The gnu test tests/mv/i-4 is no longer failing!
Congrats! The gnu test tests/mv/symlink-onto-hardlink is no longer failing!

@cakebaker
Copy link
Contributor

I don't know if you have seen it, but the new tests in test_mv.rs fail on Android.


at.hard_link(file_a, file_b);

at.touch(file_a);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
at.touch(file_a);

I don't know why this second "touch" is there. The test also passes without it.

tests/by-util/test_mv.rs Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented May 8, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/mv/force is no longer failing!
Congrats! The gnu test tests/mv/hard-4 is no longer failing!
Congrats! The gnu test tests/mv/i-4 is no longer failing!
Congrats! The gnu test tests/mv/symlink-onto-hardlink is no longer failing!

@cakebaker cakebaker merged commit d769871 into uutils:main May 8, 2023
@sylvestre sylvestre deleted the mv-hardlink branch May 8, 2023 15:41
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.

2 participants