Subject: Re: bug#27555: cygwin surrogate-pair test now fails

From: Duncan Roe <[email-masked]>
Date: Wed, 24 Nov 2021 12:31:42 +1100

Patch is in the next email. Here is a comparison between surrogate-pair.log
under Linux and Cygwin (only the relevant part of the diff)

*** 145,217 ****
  + case $io_pair in
  ++ cut -c1-6
  ++ uname -s
! + '[' Linux '!=' CYGWIN ']'
! + for opt in ''\'''\''' -i -E -F -iE -iF
! + grep --file=in in
! + compare out in
! + compare_dev_null_ out in
! + test 2 = 2
! + test xout = x/dev/null
! + test xin = x/dev/null
! + return 2
! + case $? in
! + compare_ out in
! + diff -u out in
! + for opt in ''\'''\''' -i -E -F -iE -iF
! + grep --file=in -i in
! + compare out in
! + compare_dev_null_ out in
! + test 2 = 2
! + test xout = x/dev/null
! + test xin = x/dev/null
! + return 2
! + case $? in
! + compare_ out in
! + diff -u out in
! + for opt in ''\'''\''' -i -E -F -iE -iF
! + grep --file=in -E in
! + compare out in
! + compare_dev_null_ out in
! + test 2 = 2
! + test xout = x/dev/null
! + test xin = x/dev/null
! + return 2
! + case $? in
! + compare_ out in
! + diff -u out in
! + for opt in ''\'''\''' -i -E -F -iE -iF
! + grep --file=in -F in
! + compare out in
! + compare_dev_null_ out in
! + test 2 = 2
! + test xout = x/dev/null
! + test xin = x/dev/null
! + return 2
! + case $? in
! + compare_ out in
! + diff -u out in
! + for opt in ''\'''\''' -i -E -F -iE -iF
! + grep --file=in -iE in
! + compare out in
! + compare_dev_null_ out in
! + test 2 = 2
! + test xout = x/dev/null
! + test xin = x/dev/null
! + return 2
! + case $? in
! + compare_ out in
! + diff -u out in
! + for opt in ''\'''\''' -i -E -F -iE -iF
! + grep --file=in -iF in
! + compare out in
! + compare_dev_null_ out in
! + test 2 = 2
! + test xout = x/dev/null
! + test xin = x/dev/null
! + return 2
! + case $? in
! + compare_ out in
! + diff -u out in
  + Exit 0
  + set +e
  + exit 0
--- 123,129 ----
  + case $io_pair in
  ++ cut -c1-6
  ++ uname -s
! + '[' CYGWIN '!=' CYGWIN ']'
  + Exit 0
  + set +e
  + exit 0

Duncan Roe (1):
  tests: make surrogate-pair pass under Cygwin

 NEWS                 | 4 ++++
 tests/surrogate-pair | 2 ++
 2 files changed, 6 insertions(+)

-- 
2.17.5