Commit Graph
184 Commits
Author SHA1 Message Date
oech3andDaniel Hofstetter 7cd4bbeee2 tests_tail.rs: remove nix 2026-05-19 10:33:29 +02:00
Cả thế giới là RustandGitHub 34e71a6208 test(tail): fix flaky test_follow_name_multiple on macOS (#9636)
Increase timeout from 500ms to 1300ms on macOS to account for file system
caching delays when reading redirected output from temp files.
2026-05-16 23:08:53 +02:00
Sylvestre LedruandDaniel Hofstetter f057cc6a01 tests: replace .no_stdout().no_stderr() chains with .no_output()
Bulk rename of the antipattern across 19 test files (136 occurrences).
.no_output() is the established shorthand in the uutests framework
for asserting both empty stdout and empty stderr.
2026-05-12 09:31:31 +02:00
oech3andDaniel Hofstetter aeaf810eb5 test_tail.rs: increase delay 2026-05-06 08:35:00 +02:00
oech3andDaniel Hofstetter c7e2957a0d test_tail.rs: remove unsafe 2026-04-28 08:35:40 +02:00
Lorenzo RossiGitHubpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
fbefc2bd99 tail: fix panic on write error in bounded_tail (#11886)
* tail: fix panic on write error in bounded_tail

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* tail: increase test file size to ensure bounded_tail path

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-19 13:39:40 +02:00
Sylvestre LedruandDaniel Hofstetter 252ec26f52 tests: tail: increase delay for test_follow_name_multiple on macOS
* tests/by-util/test_tail.rs (test_follow_name_multiple): Increase
the delay on macOS to 2000ms to avoid intermittent failures due to
slower follow-name change detection on macOS CI.
2026-04-08 15:50:52 +02:00
oech3andDaniel Hofstetter 6dc9f7b7ba delay=1000 at test_tail::test_follow_name_multiple at non-linux 2026-03-11 14:13:34 +01:00
mattsuandGitHub 88219aafe9 fix(tail): increase retry delay and sleep interval for flaky test (#11278)
Increases the retry delay from 100ms to 400ms and sleep interval from 0.1s to 0.2s in test_retry9 to address flaky test behavior caused by timing sensitivity.
2026-03-10 13:27:54 +01:00
xtqqczzeandGitHub f00a050106 clippy: fix nightly lints (#11232) 2026-03-08 09:13:23 +01:00
852c6a94b0 tests/tail: reduce delays in multiple tests to speed up execution (#11206)
Co-authored-by: Dominykas Vozgirdas <dominykas.vozgirdase@gmail.com>
2026-03-06 09:41:25 +01:00
e330d2ce1e tail: report PermissionDenied instead of No such file when metadata f… (#11018)
* tail: report PermissionDenied instead of No such file when metadata fails

* #10193 PermissionDenied tests

* style: run cargo fmt.

* Style: run cargo fmt and cargo clippy

* Update tests/by-util/test_tail.rs

Replace make_file with touch

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update tests/by-util/test_tail.rs

Simplify tests

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2026-02-23 08:22:55 +01:00
✿ Fleur de BlueandGitHub 2a2cafdbd4 Re-enable unused_qualifications lint (#10571) 2026-02-03 21:55:21 +01:00
8bb31eeab9 tail: fix -F to properly track symlinks with changing targets (#10158)
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-02-01 22:26:08 +01:00
Sylvestre LedruandGitHub 2de0a5b51e tail: fix test suspension by redirecting stdin to null (#10431)
Caused:
  zsh: suspended (tty input)  cargo test
2026-01-22 05:16:29 -08:00
Quin GillespieandGitHub 3c55820f5e Fixed passing -0 to tail. Closes #10191 (#10209) 2026-01-18 18:50:14 +01:00
7654075306 tail: fix behaviour of tail -n0 in follow mode (#9114)
* tail: fix behaviour of -n0 in follow mode

* tests: added test for checking -n0 in follow mode

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-01-18 18:21:48 +01:00
DhruvandGitHub 7707b72870 Fix tail -c panics when requested bytes exceed file size (#10268)
* Fix tail -c panics when requested bytes exceed file size

* Add tail bytes exceed file size test

* Update test to hit block size condition
2026-01-17 08:26:15 -05:00
Chris DrydenandGitHub d806231866 tail: add --debug flag to show follow implementation mode (#10105)
* tail: add --debug flag to show follow implementation mode

* tail: add tests for --debug flag output

* fix formatting
2026-01-14 06:07:17 +01:00
Sylvestre LedruandGitHub 98e0b31386 Merge pull request #10156 from ChrisDryden/tail-pipe-fix
tail: fix pipe-f test by detecting broken stdout pipe
2026-01-10 16:35:03 +01:00
Chris DrydenandGitHub 04c81ce8cf tail: fix big number handling and error message quoting (#10155)
* tail: fix big number handling and error message quoting

* fix clippy: remove needless borrows in test_tail
2026-01-10 14:25:18 +01:00
3441de92f2 tail: fix --pid with FIFO by using non-blocking open (#9663)
* tail: fix --pid with FIFO by using non-blocking open

* Address review comments: propagate fcntl errors and remove Windows stub

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Co-authored-by: Sylvestre Ledru <sylvestre.ledru@gmail.com>
2026-01-10 12:39:14 +01:00
Christopher Dryden e96a170675 tail: fix pipe-f test by detecting broken stdout pipe 2026-01-10 06:57:46 +00:00
Sylvestre LedruandGitHub d946dce1a9 * mac: increase tail test delays to fix intermittent failure 2025-12-28 20:35:26 +01:00
Jan Verbeek e4024045a0 Do not use .display()/.to_string_lossy() unnecessarily
This comes up a lot for quoted strings in messages: OS strings can be
quoted directly and this prevents information loss.

This commit removes ~60% of the calls to these methods (modulo
tests). Some of the remaining calls are benign, for example because
they convert solely to check for the presence of ASCII
characters. Others are nontrivial to improve.
2025-11-19 20:48:24 +01:00