summaryrefslogtreecommitdiffstats
path: root/tests/printf
AgeCommit message (Collapse)AuthorLines
2026-01-01maint: run 'make update-copyright'Collin Funk-7/+7
2025-12-12tests: printf: add case for quoting single quotesPádraig Brady-1/+3
* tests/printf/printf-quote.sh: Add a test case for https://bugs.debian.org/992161 which was fixed with gnulib commit v0.1-7339-g07b31a9465
2025-01-15tests: printf: avoid false failurePádraig Brady-1/+2
* tests/printf/printf-surprise.sh: Increase the VM limit to avoid false failures in rare cases.
2025-01-01maint: update all copyright year number rangesPádraig Brady-7/+7
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-19tests: printf: avoid iconv issues on macOSPádraig Brady-2/+2
* tests/printf/printf-cov.pl: Since gnulib commit v1.0-1103-ge5b82978e2 we avoid iconv() on ASCII range 0x32 - 0x7F inclusive, so adjust this test to fall within that range. Addresses https://bugs.gnu.org/74428
2024-11-19tests: Remove stray ‘i’Paul Eggert-1/+1
2024-11-19printf: diagnose empty args correctlyPaul Eggert-0/+9
Also, port better to macOS. * src/printf.c (verify_numeric): Don’t assume that when s == end then errno is zero; it is EINVAL on macOS, and POSIX allows this. (print_direc): Treat missing arg as zero for numeric conversions, and as an empty string for the others. (print_formatted): Use null pointer, not an empty string, to represent missing arg. * tests/printf/printf.sh: Test empty and space widths and precisions.
2024-09-13printf: add indexed argument supportPádraig Brady-0/+103
* src/printf.c (print_formatted): Add support for %i$ indexed args. * tests/printf/printf-indexed.sh: Add a new file of test cases. * tests/local.mk: Reference the new test file. * doc/coreutils.texi (printf invocation): Mention how mixed processing of indexed and sequential references are supported, unlike the printf(2) library function. * NEWS: Mention the new (POSIX:2024) feature. Addresses https://bugs.gnu.org/73068
2024-02-27tests: simplify treatment of the $LOCALE_FR_UTF8 variablePádraig Brady-4/+2
* tests/df/problematic-chars.sh: Rely on gnulib setting this to "none" where not usable. * tests/misc/sleep.sh: Likewise. * tests/printf/printf-mb.sh: Likewise. * tests/printf/printf-quote.sh: Likewise. * tests/sort/sort-debug-keys.sh: Likewise.
2024-01-17tests: make ulimit -v interact better with ASANPádraig Brady-1/+1
ulimit -v is generally not supported with ASAN, giving errors like: "ReserveShadowMemoryRange failed while trying to map 0x... bytes. Perhaps you're using ulimit -v" * tests/cp/link-heap.sh: Mention ASAN as a possible reason for skipping. * tests/csplit/csplit-heap.sh: Likewise. * tests/cut/cut-huge-range.sh: Likewise. * tests/dd/no-allocate.sh: Likewise. * tests/printf/printf-surprise.sh: Likewise. * tests/rm/many-dir-entries-vs-OOM.sh: Likewise. * tests/head/head-c.sh: Only skip the part of the test needing ulimit. * tests/split/line-bytes.sh: Likewise.
2024-01-01maint: update all copyright year number rangesPádraig Brady-6/+6
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 Ledru-0/+482
* cfg.mk: Adjust syntax check exclusion paths. * tests/local.mk: Adjust for renamed tests.