xtqqczze and GitHub
5d505ca6b9
chore: use consistent copyright header in .rs files ( #11020 )
2026-02-19 07:33:28 +01:00
Chris Dryden and GitHub
67046f5df7
timeout: add all signal handlers, pass on signals to child, add ignored signal handling ( #10254 )
...
There was quite a bunch of different features missing in timeout, to start off, now that we have a mechanism to read the SIGPIPE handlers before they are overwritten by the rust runtime, it means that we can not propagate this signal down to the child processes if the signal is set to ignore.
This also includes all of the latest changes since 9.9 where the specific signal sent to timeout will be propagated instead of just defaulting to a TERM signal.
2026-01-26 20:41:39 +01:00
Chris Dryden and GitHub
9ea24d66b0
timeout: display signal 0 as '0' instead of 'EXIT' in verbose mode ( #10194 )
...
This is done to match a change in GNU coreutils after v9.9
2026-01-17 23:13:54 +01:00
Daniel Hofstetter and GitHub
a0c14aacbb
Merge pull request #9580 from Ecordonnier/eco/remove-fixme
...
timeout: remove FIXME in test
2025-12-06 14:48:02 +01:00
Etienne Cordonnier and GitHub
8d590ca4cc
timeout: cleanup return values ( #9576 )
...
- remove "WaitingFailed" which is a duplicate of "CommandTimedOut"
- replace hard-coded values 126 and 127 with enum values, remove TODO
- fix misleading comment. we DO return CommandTimedOut even when preserve-status is not specified
- add tests for exit values 126 and 127
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com >
2025-12-06 14:37:41 +01:00
Etienne Cordonnier
38224017f9
timeout: remove FIXME in test
...
This FIXME comment was added in 2021 ( 5431e947bc ).
`timeout` is already in feat_require_unix_core, so having `true` and `false` on
the machine running the test is quite reasonable and does not warrant a FIXME.
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com >
2025-12-06 14:26:25 +01:00
Chris Dryden and Sylvestre Ledru
e094bddcc9
Reducing sleep times and timeout times in test_timeout
2025-11-22 20:52:15 +01:00
Elliot Wesoff
e109504086
tests/timeout: remove unnecessary stderr check
2025-10-08 00:07:44 -07:00
Daniel Hofstetter and GitHub
f74cceabc7
Merge pull request #8197 from Luv-Ray/timeout_catch_sigterm
...
timeout: catch TERM signal
2025-07-05 17:19:40 +02:00
Dorian Peron
6e23d4e979
tests: patch tests to simplify imports
2025-07-01 03:36:46 +02:00
Martin Kunkel and Luv-Ray
baab9aa895
timeout: Add test for SIGTERM processing
...
This is the test for issue #8040 .
2025-06-27 17:01:53 +08:00
Jeremy Smart and Sylvestre Ledru
384878b5df
add timeout test for hex parsing
2025-05-19 11:18:18 +02:00
Jeremy Smart
8cfffecd5f
timeout: add tests
2025-04-17 21:32:58 -04:00
Jeremy Smart
7f2fb0483a
update tests
2025-04-14 07:34:41 -04:00
Nicolas Boichat
edc213d2c7
test_timeout: Add tests for very short timeouts
...
Note that unlike GNU coreutils, any value > 0 will not be treated
as 0, even if the exponent is very large.
2025-04-04 18:23:17 +02:00
Sylvestre Ledru
a0179ea239
uutests: adjust the tests to use them
2025-03-28 21:40:31 +01:00
Sylvestre Ledru
3e1adf40ee
Use the new function 'fails_with_code' v2
2025-03-04 09:27:47 +01:00
Sylvestre Ledru
18cb7dcf9e
Use the new function fails_with_code
...
Done with
```
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.no_stdout\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2)\n\1.no_stdout();/gs' *rs
$ sed -i -e "s|.fails()(.*).code_is(|.fails_with_code(|g" *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2);/gs' *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)(.*?)[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\3)\2;/gs' *rs
...
```
2025-03-01 17:26:20 +01:00
Daniel Hofstetter
55a4285466
timeout: use no_output() to simplify tests
2025-01-23 16:09:06 +01:00
Daniel Hofstetter
df91808649
timeout: add support for -f and -p short options
2025-01-23 16:05:14 +01:00
Ben Wiederhake
449c685675
uucore+timeout: accept signals of any casing
2024-07-03 04:15:52 +02:00
Ulrich Hornung
7e22f99913
remove second sh process to have timeout waiting for the right process
2024-03-12 19:08:51 +01:00
Ulrich Hornung
a2a375d0dd
using other than TERM/KILL signal to see if --preserve-status works
2024-03-12 19:05:51 +01:00
Sylvestre Ledru
bfca6bf70f
Add license headers on all files
2023-08-21 10:49:27 +02:00
Daniel Hofstetter
6988eb7ec6
tests: expand wildcard imports
2023-03-20 15:32:35 +01:00