aboutsummaryrefslogtreecommitdiffstats
path: root/tests/timeout (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-04-05maint: adjustments to recent timeout changePádraig Brady2-4/+1
* .gitignore: Add /lib/fenv.h to ignore list. * tests/timeout/timeout-parameters.sh: Use a sleep length of 10s to be consistent with the pattern where we use this larger time when it does not slow down a test, but also provides protection against a hung test, and better avoidance of false failures due to races on very loaded systems. Also fix the setting of FAIL. * tests/timeout/timeout-large-parameters.sh: Remove duplicated test.
2025-04-05timeout: round timeouts upPaul Eggert1-1/+6
This handles timeouts like 16777216.000000001 correctly; formerly the subsecond part of that timeout was ignored. * bootstrap.conf (gnulib_modules): Add fenv-rounding, signbit. * src/local.mk (src_timeout_LDADD): Append $(FENV_ROUNDING_LIBM). * src/timeout.c: Include fenv.h, math.h. Don’t include xstrtod.h, as xstrtod’s checking now gets in the way. (parse_duration): Round up when calling cl_strtod. Check for -1e-1000. Don’t double-round 1e-9. * tests/timeout/timeout-parameters.sh: Test for -0.1, -1e-1000, 1e-1000.
2025-04-04timeout: ensure infinitesimal timeouts timeout quicklyPádraig Brady1-0/+3
* src/timeout.c (parse_duration): Clamp infinitesimal values to 1ns. * tests/timeout/timeout-large-parameters.sh: Add a test case. * NEWS: Mention the bug fix. Fixes https://bugs.gnu.org/77535
2025-01-01maint: update all copyright year number rangesPádraig Brady5-5/+5
Update to latest gnulib with new copyright year. Run "make update-copyright" and then... * gnulib: Update included in this commit as copyright years are the only change from the previous gnulib commit. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise. * tests/sample-test: Adjust to use the single most recent year.
2024-11-01doc: fix timeout --help for -pPádraig Brady1-6/+2
* src/timeout.c (usage): Fix typo of period with comma. * tests/timeout/timeout.sh: Only test a single option variant, as tests/misc/usage_vs_getopt.sh suffices for basic option validation.
2024-10-30timeout: add -f and -p short options as per POSIX 2024Pádraig Brady1-2/+6
* src/timeout.c: Support -f and -p short options, corresponding to --foreground and --preserve-status respectively. This adds compatability with POSIX 2024 and OpenBSD. (usage): Separate translations, and reorder the option descriptions. * doc/coreutils.texi (timeout invocation): Adjust accordingly, and also reorder the option descriptions alphabetically. * tests/timeout/timeout.sh: Also test short option variants.
2024-01-01maint: update all copyright year number rangesPádraig Brady5-5/+5
Update to latest gnulib with new copyright year. Run "make update-copyright" and then... * gnulib: Update included in this commit as copyright years are the only change from the previous gnulib commit. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Manually update copyright year, until we fully sync with gnulib at a later stage. * tests/sample-test: Adjust to use the single most recent year.
2023-06-19tests: move tests to a directory per utilitySylvestre Ledru5-0/+321
* cfg.mk: Adjust syntax check exclusion paths. * tests/local.mk: Adjust for renamed tests.