Skip to content

Un-Ignore two tests that fail for nonsense reasons#5997

Merged
sylvestre merged 2 commits intouutils:mainfrom
BenWiederhake:dev-unignore
Feb 23, 2024
Merged

Un-Ignore two tests that fail for nonsense reasons#5997
sylvestre merged 2 commits intouutils:mainfrom
BenWiederhake:dev-unignore

Conversation

@BenWiederhake
Copy link
Copy Markdown
Collaborator

This PR un-ignores two tests:

  • test_head::test_spams_newline set a wrong expectation. A simple comparison with GNU head and busybox head reveals that the test was flawed, and plugging in the correct output passes the test.
  • test_touch::test_touch_invalid_date_format had a simple typo: Apparently someone accidentally copy-pasted typographic quotation marks instead of the usual "ASCII" quotation marks. Changing this passes the test.

The comment was introduced in commit 8320b1e,
the test was introduced in commit c1f518e
claiming to be about "failing GNU head tests".

However, a simple check reveals no such difference:

```console
$ echo -n a | hd
00000000  61                                                |a|
00000001
$ echo -n a | head | hd  # GNU head
00000000  61                                                |a|
00000001
$ echo -n a | cargo run -- head | hd
00000000  61                                                |a|
00000001
$ echo -n a | busybox head | hd
00000000  61                                                |a|
00000001
$
```

Looking at the GNU tests directly, it seems that there is a similar, but different test.
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