Conversation
This comment was marked as resolved.
This comment was marked as resolved.
|
GNU testsuite comparison: |
|
Can you please add a test to |
|
This issue is pipe from stdin specific. Can we add test with our framework? |
|
@oech3 I'm not sure I understand your question correctly, but |
|
Thankyou. |
|
Do I need to do anything here ? |
|
You still need to add Rust native test if possible. |
|
Just added: |
|
GNU testsuite comparison: |
tests/by-util/test_factor.rs
Outdated
| #[test] | ||
| fn test_trim_null_chars() { | ||
| new_ucmd!() | ||
| .pipe_in_fixture("42_with_null_char.txt") |
There was a problem hiding this comment.
While this works fine, using a fixture is a bit overkill in this case and I would pipe in the input directly:
| .pipe_in_fixture("42_with_null_char.txt") | |
| .pipe_in("42\0") |
|
GNU testsuite comparison: |
|
Thanks for your PR! |
|
Hmm... backported gnu test does not pass. |
|
This is my first uutils activity. Please forgive my basic naive questions:
|
|
It seems new test what I tried to backport has more cases https://github.com/uutils/coreutils/actions/runs/22672349162/job/65719523099?pr=11185#step:8:3223 . This is the guide to run GnuTests locally, but the doc is incomplete. It lacks some required utils to run it correctly e.g. |
|
@oech3, I wish I could help here - but I need an environment that is easier to set. |
|
It is because GNU 9.10 tarball require too new automake coreutils/.github/workflows/GnuTests.yml Lines 60 to 61 in e4d943b which is missing from Ubuntu LTS. |
|
The attached |
Closes #11097
In fn write_factors_str() @ factor.rs
trim also null characters.