1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-10 09:21:58 +02:00

tests: ptx: ensure bad unicode is supported

* tests/ptx/ptx-overrun.sh: Ensure bad_unicode() is processed.
This commit is contained in:
oech3
2026-02-07 22:00:20 +00:00
committed by Pádraig Brady
parent 5901e4425a
commit 1c4773e6ec

View File

@@ -18,8 +18,9 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ ptx print_ver_ ptx
# Ensure this input is processed # Ensure these inputs are processed
printf '%s' '012345678901234567890123456789🛠' | ptx || fail=1 printf '%s' '012345678901234567890123456789🛠' | ptx || fail=1
bad_unicode | ptx || fail=1
# Trigger a heap-clobbering bug in ptx from coreutils-6.10 and earlier. # Trigger a heap-clobbering bug in ptx from coreutils-6.10 and earlier.
# Using a long file name makes an abort more likely. # Using a long file name makes an abort more likely.