From 596dadbbb5a711477f811fed65a6c463801d16c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Thu, 11 Jun 2026 13:36:09 +0200 Subject: [PATCH] tools/test/stress2/misc/msdos24.sh: improve surrogate pair test Instead of varying only the low surrogate do also randomly choose a suitable high surrogate. MFC after: 3 days --- tools/test/stress2/misc/msdos24.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/test/stress2/misc/msdos24.sh b/tools/test/stress2/misc/msdos24.sh index edb524293c0..d16a869d3ee 100755 --- a/tools/test/stress2/misc/msdos24.sh +++ b/tools/test/stress2/misc/msdos24.sh @@ -14,8 +14,16 @@ randomfilename () { count=$(jot -r 1 10 3) for r in $(jot -r $count 7 0); do r=$(( r + 0 )) - emoji="\0360\0237\0230\020$r" - c=$(echo -e $emoji) + case $(jot -r 1 3 1) in + 1) + emoji="\0360\0237\0230\020$r" + c=$(echo -e $emoji) + ;; + *) + food="\0360\0237\0245\022$r" + c=$(echo -e $food) + ;; + esac if [ $r -gt 0 ]; then for i in $(jot $r); do name="$name$i"