Skip to content

cp: split a test - #14282

Open
xtqqczze wants to merge 1 commit into
uutils:mainfrom
xtqqczze:test_cp_reflink_always_invalid_argument
Open

cp: split a test#14282
xtqqczze wants to merge 1 commit into
uutils:mainfrom
xtqqczze:test_cp_reflink_always_invalid_argument

Conversation

@xtqqczze

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tests/by-util/test_cp.rs
#[test]
#[cfg(target_os = "linux")]
fn test_cp_reflink_always_failure() {
fn test_cp_reflink_always_invalid_argument() {

@oech3 oech3 Aug 30, 2026

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 strongly disagree with separating 2 tests at least for. Because 2 test cases are exactly coming from same code path (thus, same logic).

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.

Or just drop test for cross device.

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.

does it really matter ? :)
tests are cheap

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.

We just need to check that os errno is extracted at here.

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.

Tests should be as small as possible, but no smaller :)

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 still disagree with separating 2 tests at least for.

@github-actions

Copy link
Copy Markdown

Binary size comparison:

Individual binary size comparison VS main (threshold: >=5% AND >=4 KB).

Total size of compared binaries: 152.18 MB (+1004 KB, +0.65%)

Significant per-binary changes:
  comm     1.12 MB ->    2.33 MB  (+1.21 MB, +107.29%)

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/cut/bounded-memory (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/symlink (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/tail-n0f (passes in this run but fails in the 'main' branch)

@sylvestre

Copy link
Copy Markdown
Contributor

@oech3 ok?

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.

3 participants