-
-
Notifications
You must be signed in to change notification settings - Fork 2k
test_cp.rs: fix error message of ficlone on musl #14273
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1070,7 +1070,7 @@ fn test_cp_reflink_always_failure() { | |||||||||||||
| .args(&["--reflink=always", "/dev/null", "target"]) | ||||||||||||||
| .fails() | ||||||||||||||
| .no_stdout() | ||||||||||||||
| .stderr_contains("Invalid cross-device link"); | ||||||||||||||
| .stderr_contains("ross-device link"); // cover both of glibc and musl | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
I'd prefer to be more explicit here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think there is worth to increase complexity at here just for test.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the explicit
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does not cover the case musl started aligning message with GNU at some version (or inverse).
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the platform message changes, I think it's useful for the test to fail. It flags the change and lets us decide if anything needs updating. |
||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| #[test] | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest I think we should split test into separate
test_cp_reflink_always_invalid_argumentandtest_cp_reflink_always_cross_devicetests.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't hesitate to submit a new PR :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#14282