]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: ptx: ensure bad unicode is supported
authoroech3 <79379754+oech3@users.noreply.github.com>
Sat, 7 Feb 2026 22:00:20 +0000 (22:00 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 7 Feb 2026 22:02:43 +0000 (22:02 +0000)
* tests/ptx/ptx-overrun.sh: Ensure bad_unicode() is processed.

tests/ptx/ptx-overrun.sh

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