The branch main has been updated by se:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=596dadbbb5a711477f811fed65a6c463801d16c5

commit 596dadbbb5a711477f811fed65a6c463801d16c5
Author:     Stefan Eßer <[email protected]>
AuthorDate: 2026-06-11 11:36:09 +0000
Commit:     Stefan Eßer <[email protected]>
CommitDate: 2026-06-11 11:36:09 +0000

    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 edb524293c0c..d16a869d3eea 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"

Reply via email to