Subject: Testing diffutils 3.12 on PPC Mac OS X 10.4.11, Tiger, produces so many failures

From: Peter Dyballa <[email-masked]>
Date: Wed, 16 Apr 2025 12:54:21 +0200

Hello!

Here is the long list:

--->  Testing diffutils
Executing:  cd "/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12" && /usr/bin/make check 
Making check in lib
/usr/bin/make  check-am
make[2]: Nothing to be done for `check-am'.
Making check in src
/usr/bin/make  check-am
make[2]: Nothing to be done for `check-am'.
Making check in tests
/usr/bin/make  check-TESTS
FAIL: basic
PASS: bignum
FAIL: binary
brief-vs-stat-zero-kernel-lies: skipped test: no /proc/cmdline file
SKIP: brief-vs-stat-zero-kernel-lies
FAIL: bug-64316
FAIL: cmp
PASS: colliding-file-names
FAIL: diff3
FAIL: empty-file
FAIL: excess-slash
FAIL: expand-tabs
PASS: help-version
FAIL: ifdef
FAIL: invalid-re
FAIL: function-line-vs-leading-space
ignore-case: skipped test: No UTF-8 locale found
SKIP: ignore-case
FAIL: ignore-matching-lines
ignore-tab-expansion: skipped test: No UTF-8 locale found
SKIP: ignore-tab-expansion
FAIL: label-vs-func
XPASS: large-subopt
FAIL: new-file
FAIL: no-dereference
FAIL: no-newline-at-eof
side-by-side: skipped test: No UTF-8 locale found
SKIP: side-by-side
FAIL: side-by-side-seq
PASS: starting-file
FAIL: stdin
PASS: strcoll-0-names
FAIL: filename-quoting
strip-trailing-cr: skipped test: your system lacks the timeout program
SKIP: strip-trailing-cr
PASS: timezone
FAIL: colors
y2038-vs-32bit: skipped test: touch -t 2039... failed
SKIP: y2038-vs-32bit
==============================================
   GNU diffutils 3.12: tests/test-suite.log
==============================================

# TOTAL: 33
# PASS:  6
# SKIP:  6
# XFAIL: 0
# FAIL:  20
# XPASS: 1
# ERROR: 0

System information (uname -a): Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh

.. contents:: :depth: 2

FAIL: basic
===========

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-basic.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-basic.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-basic.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-basic.
++++ echo gt-basic.XXXX
++++ wc -c
+++ template_length_=      14
++++ echo gt-basic.
++++ wc -c
+++ nx_=      10
++++ expr 14 - 10
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=D5ys
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-basic.D5ys
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-basic.D5ys
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-basic.D5ys
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-basic.D5ys
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-basic.D5ys
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ cat
+ cat
+ cat
+ echo a
+ echo b
+ returns_ 1 diff a b
+ sed -e 's/^\([-+*][-+*][-+*] [^	]*\)	.*/\1/' out
+ mv k out
++ echo
++ tr ' ' _
+ compare exp- out
+ compare_dev_null_ exp- out
+ test 2 = 2
+ test xexp- = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp- out
+ LC_ALL=C
+ diff -u exp- out
diff: program error
--- exp-	2025-04-16 11:59:17.000000000 +0200
+++ out	2025-04-16 11:59:17.000000000 +0200
@@ -2,3 +1,4 @@
 < a
 ---
 > b
+> b
+./basic: line 40:   863 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff -u a b
+ sed -e 's/^\([-+*][-+*][-+*] [^	]*\)	.*/\1/' out
+ mv k out
++ echo -u
++ tr ' ' _
+ compare exp--u out
+ compare_dev_null_ exp--u out
+ test 2 = 2
+ test xexp--u = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp--u out
+ LC_ALL=C
+ diff -u exp--u out
diff: program error
--- exp--u	2025-04-16 11:59:17.000000000 +0200
+++ out	2025-04-16 11:59:17.000000000 +0200
@@ -3,3 +1,5 @@
 @@ -1 +1 @@
 -a
 +b
+-a
++b
+./basic: line 40:   871 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff -c a b
+ sed -e 's/^\([-+*][-+*][-+*] [^	]*\)	.*/\1/' out
+ mv k out
++ echo -c
++ tr ' ' _
+ compare exp--c out
+ compare_dev_null_ exp--c out
+ test 2 = 2
+ test xexp--c = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp--c out
+ LC_ALL=C
+ diff -u exp--c out
diff: program error
--- exp--c	2025-04-16 11:59:17.000000000 +0200
+++ out	2025-04-16 11:59:17.000000000 +0200
@@ -5,3 +1,7 @@
 ! a
 --- 1 ----
 ! b
+*** 1 ****
+! a
+--- 1 ----
+! b
+./basic: line 40:   879 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-basic.D5ys
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-basic.D5ys
+ exit 1
FAIL basic (exit status: 1)

FAIL: binary
============

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-binary.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-binary.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-binary.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-binary.
++++ echo gt-binary.XXXX
++++ wc -c
+++ template_length_=      15
++++ echo gt-binary.
++++ wc -c
+++ nx_=      11
++++ expr 15 - 11
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=taFf
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-binary.taFf
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-binary.taFf
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-binary.taFf
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-binary.taFf
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-binary.taFf
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ printf 'Binary files - and /dev/null differ\n'
+ fail=0
+ printf '\0'
+ returns_ 1 diff - /dev/null
+ compare out-exp out
+ compare_dev_null_ out-exp out
+ test 2 = 2
+ test xout-exp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ out-exp out
+ LC_ALL=C
+ diff -u out-exp out
--- out-exp	2025-04-16 11:59:19.000000000 +0200
+++ out	2025-04-16 11:59:19.000000000 +0200
@@ -1 +1 @@
 Binary files - and /dev/null differ
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-binary.taFf
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-binary.taFf
+ exit 1
FAIL binary (exit status: 1)

SKIP: brief-vs-stat-zero-kernel-lies
====================================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-brief-vs-stat-zero-kernel-lies.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-brief-vs-stat-zero-kernel-lies.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-brief-vs-stat-zero-kernel-lies.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-brief-vs-stat-zero-kernel-lies.
++++ echo gt-brief-vs-stat-zero-kernel-lies.XXXX
++++ wc -c
+++ template_length_=      39
++++ echo gt-brief-vs-stat-zero-kernel-lies.
++++ wc -c
+++ nx_=      35
++++ expr 39 - 35
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=Pwb4
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-brief-vs-stat-zero-kernel-lies.Pwb4
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-brief-vs-stat-zero-kernel-lies.Pwb4
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-brief-vs-stat-zero-kernel-lies.Pwb4
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-brief-vs-stat-zero-kernel-lies.Pwb4
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-brief-vs-stat-zero-kernel-lies.Pwb4
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ boot=/proc/cmdline
+ test -r /proc/cmdline
+ skip_ no /proc/cmdline file
+ warn_ 'brief-vs-stat-zero-kernel-lies: skipped test: no' /proc/cmdline file
+ printf '%s\n' 'brief-vs-stat-zero-kernel-lies: skipped test: no /proc/cmdline file'
brief-vs-stat-zero-kernel-lies: skipped test: no /proc/cmdline file
+ test 9 = 2
+ printf '%s\n' 'brief-vs-stat-zero-kernel-lies: skipped test: no /proc/cmdline file'
+ sed 1q
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-brief-vs-stat-zero-kernel-lies.Pwb4
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-brief-vs-stat-zero-kernel-lies.Pwb4
+ exit 77
SKIP brief-vs-stat-zero-kernel-lies (exit status: 77)

FAIL: bug-64316
===============

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-bug-64316.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-bug-64316.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-bug-64316.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-bug-64316.
++++ echo gt-bug-64316.XXXX
++++ wc -c
+++ template_length_=      18
++++ echo gt-bug-64316.
++++ wc -c
+++ nx_=      14
++++ expr 18 - 14
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=qpux
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-bug-64316.qpux
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-bug-64316.qpux
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-bug-64316.qpux
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-bug-64316.qpux
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-bug-64316.qpux
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ printf 'c\nd\ne\nf\ng\n%s\nh\ni\nj\nk\nl\n' a
+ printf 'c\nd\ne\nf\ng\n%s\nh\ni\nj\nk\nl\n' b
+ cat
+ returns_ 1 diff -u a b
+ fail=1
+ sed 1,2d out
+ compare exp out1
+ compare_dev_null_ exp out1
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout1 = x/dev/null
+ return 2
+ compare_ exp out1
+ LC_ALL=C
+ diff -u exp out1
diff: program error
--- exp	2025-04-16 11:59:20.000000000 +0200
+++ out1	2025-04-16 11:59:20.000000000 +0200
@@ -1,9 +1,13 @@
-@@ -3,7 +3,7 @@
- e
- f
- g
--a
-+b
- h
- i
- j
+@@ -1,11 +1,11 @@
+-c
+-d
+-e
+-f
+-g
+-a
+-h
+-i
+-j
+-k
+-l
+-
+./bug-64316: line 28:  1230 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ emit_diff_u_header_ /dev/null err
+ printf '%s\n' 'diff -u /dev/null err' '--- /dev/null	1970-01-01' '+++ err	1970-01-01'
diff -u /dev/null err
--- /dev/null	1970-01-01
+++ err	1970-01-01
+ sed 's/^/+/' err
+diff: program error
+./bug-64316: line 26:  1228 Abort trap              "$@"
+ return 1
+ return 1
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-bug-64316.qpux
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-bug-64316.qpux
+ exit 1
FAIL bug-64316 (exit status: 1)

FAIL: cmp
=========

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-cmp.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-cmp.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-cmp.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-cmp.
++++ echo gt-cmp.XXXX
++++ wc -c
+++ template_length_=      12
++++ echo gt-cmp.
++++ wc -c
+++ nx_=       8
++++ expr 12 - 8
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=e0Bm
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-cmp.e0Bm
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-cmp.e0Bm
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-cmp.e0Bm
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-cmp.e0Bm
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-cmp.e0Bm
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ cat
+ echo a
+ echo b
+ :
+ rm -f d
+ echo cmp a a
+ cmp a a
+ status=0
+ cat stderr stdout
+ echo 0
+ echo cmp a b
+ cmp a b
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp a c
+ cmp a c
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp a d
+ cmp a d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp b a
+ cmp b a
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp b b
+ cmp b b
+ status=0
+ cat stderr stdout
+ echo 0
+ echo cmp b c
+ cmp b c
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp b d
+ cmp b d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp c a
+ cmp c a
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp c b
+ cmp c b
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp c c
+ cmp c c
+ status=0
+ cat stderr stdout
+ echo 0
+ echo cmp c d
+ cmp c d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp d a
+ cmp d a
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp d b
+ cmp d b
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp d c
+ cmp d c
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp d d
+ cmp d d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -l a a
+ cmp -l a a
+ status=0
+ cat stderr stdout
+ echo 0
+ echo cmp -l a b
+ cmp -l a b
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -l a c
+ cmp -l a c
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -l a d
+ cmp -l a d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -l b a
+ cmp -l b a
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -l b b
+ cmp -l b b
+ status=0
+ cat stderr stdout
+ echo 0
+ echo cmp -l b c
+ cmp -l b c
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -l b d
+ cmp -l b d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -l c a
+ cmp -l c a
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -l c b
+ cmp -l c b
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -l c c
+ cmp -l c c
+ status=0
+ cat stderr stdout
+ echo 0
+ echo cmp -l c d
+ cmp -l c d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -l d a
+ cmp -l d a
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -l d b
+ cmp -l d b
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -l d c
+ cmp -l d c
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -l d d
+ cmp -l d d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -s a a
+ cmp -s a a
+ status=0
+ cat stderr stdout
+ echo 0
+ echo cmp -s a b
+ cmp -s a b
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -s a c
+ cmp -s a c
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -s a d
+ cmp -s a d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -s b a
+ cmp -s b a
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -s b b
+ cmp -s b b
+ status=0
+ cat stderr stdout
+ echo 0
+ echo cmp -s b c
+ cmp -s b c
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -s b d
+ cmp -s b d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -s c a
+ cmp -s c a
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -s c b
+ cmp -s c b
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -s c c
+ cmp -s c c
+ status=0
+ cat stderr stdout
+ echo 0
+ echo cmp -s c d
+ cmp -s c d
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -s d a
+ cmp -s d a
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -s d b
+ cmp -s d b
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -s d c
+ cmp -s d c
+ status=2
+ cat stderr stdout
+ echo 2
+ echo cmp -s d d
+ cmp -s d d
+ status=2
+ cat stderr stdout
+ echo 2
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
--- exp	2025-04-16 11:59:21.000000000 +0200
+++ out	2025-04-16 11:59:22.000000000 +0200
@@ -120,3 +115,8 @@
 2
 cmp -s d d
 2
+2
+cmp -s d c
+2
+cmp -s d d
+2
+ fail=1
+ cat
+ printf ''
+ printf '1\n'
+ printf '1\nfoo'
+ printf '1\nfoolery\n'
+ echo cmp a0 a1
+ cmp a0 a1
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp a1 a2
+ cmp a1 a2
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp a2 a3
+ cmp a2 a3
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -l a0 a1
+ cmp -l a0 a1
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -l a1 a2
+ cmp -l a1 a2
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -l a2 a3
+ cmp -l a2 a3
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -s a0 a1
+ cmp -s a0 a1
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -s a1 a2
+ cmp -s a1 a2
+ status=1
+ cat stderr stdout
+ echo 1
+ echo cmp -s a2 a3
+ cmp -s a2 a3
+ status=1
+ cat stderr stdout
+ echo 1
+ compare exp1 out1
+ compare_dev_null_ exp1 out1
+ test 2 = 2
+ test xexp1 = x/dev/null
+ test xout1 = x/dev/null
+ return 2
+ compare_ exp1 out1
+ LC_ALL=C
+ diff -u exp1 out1
--- exp1	2025-04-16 11:59:22.000000000 +0200
+++ out1	2025-04-16 11:59:23.000000000 +0200
@@ -22,3 +17,8 @@
 1
 cmp -s a2 a3
 1
+1
+cmp -s a1 a2
+1
+cmp -s a2 a3
+1
+ fail=1
+ printf 'bad\n'
+ printf 'bug\n'
+ echo LC_ALL=C cmp -b bad bug
LC_ALL=C cmp -b bad bug
+ LC_ALL=C
+ cmp -b bad bug
bad bug differ: byte 2, line 1 is 141 a 165 u
+ test 1 -eq 1
++ LC_ALL=C
++ cmp -b bad bug
+ printf 'Jackdaws love my big sphinx of quartz!'
+ printf 'jackdaws love my big sphinx of quartz.'
+ cat
+ cmp -bl j1 j2
+ test 1 -eq 1
+ compare exp2 out2
+ compare_dev_null_ exp2 out2
+ test 2 = 2
+ test xexp2 = x/dev/null
+ test xout2 = x/dev/null
+ return 2
+ compare_ exp2 out2
+ LC_ALL=C
+ diff -u exp2 out2
diff: program error
--- exp2	2025-04-16 11:59:23.000000000 +0200
+++ out2	2025-04-16 11:59:23.000000000 +0200
@@ -1,2 +1,2 @@
  1 112 J    152 j
+38  41 !     56 .
+./cmp: line 229:  1439 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ printf '\200\300\377\n'
+ printf '\0@\177\n'
+ cat
+ LC_ALL=en_US.iso8859-1
+ cmp -bl j3 j4
+ test 1 -eq 1
+ compare exp3 out3
+ compare_dev_null_ exp3 out3
+ test 2 = 2
+ test xexp3 = x/dev/null
+ test xout3 = x/dev/null
+ return 2
+ compare_ exp3 out3
+ LC_ALL=C
+ diff -u exp3 out3
--- exp3	2025-04-16 11:59:23.000000000 +0200
+++ out3	2025-04-16 11:59:23.000000000 +0200
@@ -1,3 +1,3 @@
 1 200 M-^@   0 ^@
 2 300 M-@  100 @
 3 377 M-^? 177 ^?
+ fail=1
+ big=99999999999999999999999999999999999999999999999999999999999
+ cmp -i 99999999999999999999999999999999999999999999999999999999999 j1 j2
+ cmp -i 1000 -n 99999999999999999999999999999999999999999999999999999999999 j1 j2
+ rm -f a b
+ timeout 0.1 true
./cmp: line 249: timeout: command not found
+ rm -f a b
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-cmp.e0Bm
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-cmp.e0Bm
+ exit 1
FAIL cmp (exit status: 1)

FAIL: diff3
===========

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-diff3.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-diff3.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-diff3.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-diff3.
++++ echo gt-diff3.XXXX
++++ wc -c
+++ template_length_=      14
++++ echo gt-diff3.
++++ wc -c
+++ nx_=      10
++++ expr 14 - 10
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=evya
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-diff3.evya
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-diff3.evya
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-diff3.evya
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-diff3.evya
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-diff3.evya
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ echo a
+ echo b
+ echo c
+ cat
+ fail=0
+ diff3 --diff-program=diff a b c
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 11:59:25.000000000 +0200
+++ out	2025-04-16 11:59:25.000000000 +0200
@@ -5,3 +1,7 @@
   b
 3:1c
   c
+2:1c
+  b
+3:1c
+  c
+./diff3: line 24:  1624 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ diff3 --diff-program=diff a a a
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ return 0
+ return 0
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ seq 10 40
+ start=10
+ final=40
+ awk 'BEGIN{for(i=10;i<=40;i++) print i}'
+ sed 's/1$/x/'
+ seq 10 40
+ start=10
+ final=40
+ awk 'BEGIN{for(i=10;i<=40;i++) print i}'
+ sed 's/5$/y/'
+ seq 10 40
+ start=10
+ final=40
+ awk 'BEGIN{for(i=10;i<=40;i++) print i}'
+ sed 's/8$/z/'
+ cat
+ diff3 --diff-program=diff d e f
+ compare exp40 out
+ compare_dev_null_ exp40 out
+ test 2 = 2
+ test xexp40 = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp40 out
+ LC_ALL=C
+ diff -u exp40 out
diff: program error
diff: program error
./diff3: line 95:  1640 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ emit_diff_u_header_ /dev/null err
+ printf '%s\n' 'diff -u /dev/null err' '--- /dev/null	1970-01-01' '+++ err	1970-01-01'
diff -u /dev/null err
--- /dev/null	1970-01-01
+++ err	1970-01-01
+ sed 's/^/+/' err
+diff: program error
+diff: program error
+diff3: invalid diff format; incomplete last line
+ return 1
+ return 1
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-diff3.evya
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-diff3.evya
+ exit 1
FAIL diff3 (exit status: 1)

FAIL: empty-file
================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-empty-file.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-empty-file.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-empty-file.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-empty-file.
++++ echo gt-empty-file.XXXX
++++ wc -c
+++ template_length_=      19
++++ echo gt-empty-file.
++++ wc -c
+++ nx_=      15
++++ expr 19 - 15
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=U4cB
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-empty-file.U4cB
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-empty-file.U4cB
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-empty-file.U4cB
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-empty-file.U4cB
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-empty-file.U4cB
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ mkdir a b
+ touch a/test
+ echo content
+ returns_ 1 diff -Naur a b
diff: program error
./empty-file: line 11:  1729 Abort trap              "$@"
+ fail=1
+ cat
+ sed -e 's/^\([-+*][-+*][-+*] [^	]*\)	.*/\1/' out
+ mv k out
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
diff: program error
--- expected	2025-04-16 11:59:26.000000000 +0200
+++ out	2025-04-16 11:59:26.000000000 +0200
@@ -3,3 +1,6 @@
 +++ b/test
 @@ -0,0 +1 @@
 +content
+@@ -0,0 +1 @@
++content
++
+./empty-file: line 21:  1733 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-empty-file.U4cB
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-empty-file.U4cB
+ exit 1
FAIL empty-file (exit status: 1)

FAIL: excess-slash
==================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-excess-slash.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-excess-slash.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-excess-slash.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-excess-slash.
++++ echo gt-excess-slash.XXXX
++++ wc -c
+++ template_length_=      21
++++ echo gt-excess-slash.
++++ wc -c
+++ nx_=      17
++++ expr 21 - 17
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=vI1C
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-excess-slash.vI1C
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-excess-slash.vI1C
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-excess-slash.vI1C
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-excess-slash.vI1C
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-excess-slash.vI1C
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ mkdir -p a/f b/f/g
+ echo Only in b/f: g
+ fail=0
+ diff -r a b/
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ compare expected-out out
+ compare_dev_null_ expected-out out
+ test 2 = 2
+ test xexpected-out = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected-out out
+ LC_ALL=C
+ diff -u expected-out out
--- expected-out	2025-04-16 11:59:26.000000000 +0200
+++ out	2025-04-16 11:59:27.000000000 +0200
@@ -1 +1 @@
 Only in b/f: g
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-excess-slash.vI1C
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-excess-slash.vI1C
+ exit 1
FAIL excess-slash (exit status: 1)

FAIL: expand-tabs
=================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-expand-tabs.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-expand-tabs.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-expand-tabs.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-expand-tabs.
++++ echo gt-expand-tabs.XXXX
++++ wc -c
+++ template_length_=      20
++++ echo gt-expand-tabs.
++++ wc -c
+++ nx_=      16
++++ expr 20 - 16
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=u0Iu
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-expand-tabs.u0Iu
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-expand-tabs.u0Iu
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-expand-tabs.u0Iu
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-expand-tabs.u0Iu
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-expand-tabs.u0Iu
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ cat
+ printf '\b\tx\n'
+ returns_ 1 diff -t /dev/null -
+ printf '\b        x\n'
+ returns_ 1 diff -t /dev/null -
+ printf '\b \tx\n'
+ returns_ 1 diff -t /dev/null -
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 11:59:27.000000000 +0200
+++ out	2025-04-16 11:59:27.000000000 +0200
@@ -1,2 +1,2 @@
 0a1
+>         x
+./expand-tabs: line 17:  1918 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-expand-tabs.u0Iu
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-expand-tabs.u0Iu
+ exit 1
FAIL expand-tabs (exit status: 1)

FAIL: ifdef
===========

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-ifdef.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-ifdef.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-ifdef.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-ifdef.
++++ echo gt-ifdef.XXXX
++++ wc -c
+++ template_length_=      14
++++ echo gt-ifdef.
++++ wc -c
+++ nx_=      10
++++ expr 14 - 10
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=b8fD
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ifdef.b8fD
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ifdef.b8fD
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ifdef.b8fD
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ifdef.b8fD
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ifdef.b8fD
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ cat
+ cat
+ cat
+ returns_ 1 diff -D ZZZ a b
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 11:59:30.000000000 +0200
+++ out	2025-04-16 11:59:30.000000000 +0200
@@ -5,3 +1,7 @@
 #endif /* ! ZZZ */
 4
 5
+3
+#endif /* ! ZZZ */
+4
+5
+./ifdef: line 35:  2183 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ifdef.b8fD
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ifdef.b8fD
+ exit 1
FAIL ifdef (exit status: 1)

FAIL: invalid-re
================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-invalid-re.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-invalid-re.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-invalid-re.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-invalid-re.
++++ echo gt-invalid-re.XXXX
++++ wc -c
+++ template_length_=      19
++++ echo gt-invalid-re.
++++ wc -c
+++ nx_=      15
++++ expr 19 - 15
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=9L17
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-invalid-re.9L17
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-invalid-re.9L17
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-invalid-re.9L17
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-invalid-re.9L17
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-invalid-re.9L17
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ echo
+ echo b
+ echo 'diff: '\''\'\'': Trailing backslash'
+ returns_ 2 diff -Ix '-I\' a b
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ return 0
+ return 0
+ compare exp-err err
+ compare_dev_null_ exp-err err
+ test 2 = 2
+ test xexp-err = x/dev/null
+ test xerr = x/dev/null
+ return 2
+ compare_ exp-err err
+ LC_ALL=C
+ diff -u exp-err err
--- exp-err	2025-04-16 11:59:31.000000000 +0200
+++ err	2025-04-16 11:59:31.000000000 +0200
@@ -1 +1 @@
 diff: '\': Trailing backslash
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-invalid-re.9L17
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-invalid-re.9L17
+ exit 1
FAIL invalid-re (exit status: 1)

FAIL: function-line-vs-leading-space
====================================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-function-line-vs-leading-space.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-function-line-vs-leading-space.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-function-line-vs-leading-space.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-function-line-vs-leading-space.
++++ echo gt-function-line-vs-leading-space.XXXX
++++ wc -c
+++ template_length_=      39
++++ echo gt-function-line-vs-leading-space.
++++ wc -c
+++ nx_=      35
++++ expr 39 - 35
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=cwps
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-function-line-vs-leading-space.cwps
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-function-line-vs-leading-space.cwps
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-function-line-vs-leading-space.cwps
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-function-line-vs-leading-space.cwps
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-function-line-vs-leading-space.cwps
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ cat
+ sed s/foo/null/
+ cat
+ fail=0
+ returns_ 1 diff -u -F '^[[:space:]]*\(function\|procedure\)' in in2
+ sed -n '3,$p' out
+ mv k out
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 11:59:32.000000000 +0200
+++ out	2025-04-16 11:59:32.000000000 +0200
@@ -1,9 +1,21 @@
-@@ -8,7 +8,7 @@ procedure Local_Level_5 is
-                         null;
-                         null;
-                         null;
--                        foo;
-+                        null;
-                     end;
-                 begin
-                     Local_Level_5;
+@@ -5,13 +1,17 @@ procedure Local_Level_3 is
+                 procedure Local_Level_4 is
+                     procedure Local_Level_5 is
+                     begin
++            procedure Local_Level_3 is
+                         null;
+                         null;
+                         null;
+-                        foo;
++                        null;
++                        null;
++                        null;
++                        null;
++                    end;
+                     end;
+                 begin
+                     Local_Level_5;
++            begin
+                 end;
+             begin
+                 Local_Level_4;
+./function-line-vs-leading-space: line 60:  2362 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-function-line-vs-leading-space.cwps
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-function-line-vs-leading-space.cwps
+ exit 1
FAIL function-line-vs-leading-space (exit status: 1)

SKIP: ignore-case
=================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-ignore-case.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-ignore-case.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-ignore-case.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-ignore-case.
++++ echo gt-ignore-case.XXXX
++++ wc -c
+++ template_length_=      20
++++ echo gt-ignore-case.
++++ wc -c
+++ nx_=      16
++++ expr 20 - 16
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=mDrI
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-case.mDrI
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-case.mDrI
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-case.mDrI
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-case.mDrI
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-case.mDrI
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ printf 'Funky Stuff\n'
+ printf 'fUNKy stuFf\n'
+ diff -i a b
+ fail=1
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ emit_diff_u_header_ /dev/null out
+ printf '%s\n' 'diff -u /dev/null out' '--- /dev/null	1970-01-01' '+++ out	1970-01-01'
diff -u /dev/null out
--- /dev/null	1970-01-01
+++ out	1970-01-01
+ sed 's/^/+/' out
+1a1
+> fUNKy stuFf
+ return 1
+ return 1
+ fail=1
+ require_utf8_locale_
+ local locale
+ test '' '!=' UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ skip_ 'No UTF-8 locale found'
+ warn_ 'ignore-case: skipped test: No UTF-8 locale found'
+ printf '%s\n' 'ignore-case: skipped test: No UTF-8 locale found'
ignore-case: skipped test: No UTF-8 locale found
+ test 9 = 2
+ printf '%s\n' 'ignore-case: skipped test: No UTF-8 locale found'
+ sed 1q
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-case.mDrI
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-case.mDrI
+ exit 77
SKIP ignore-case (exit status: 77)

FAIL: ignore-matching-lines
===========================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-ignore-matching-lines.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-ignore-matching-lines.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-ignore-matching-lines.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-ignore-matching-lines.
++++ echo gt-ignore-matching-lines.XXXX
++++ wc -c
+++ template_length_=      30
++++ echo gt-ignore-matching-lines.
++++ wc -c
+++ nx_=      26
++++ expr 30 - 26
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=xPAc
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-matching-lines.xPAc
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-matching-lines.xPAc
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-matching-lines.xPAc
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-matching-lines.xPAc
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-matching-lines.xPAc
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ cat
+ cat
+ cat
+ returns_ 1 diff -u --ignore-matching-lines 3 a b
+ fail=1
+ sed 1,2d out
+ compare exp outtail
+ compare_dev_null_ exp outtail
+ test 2 = 2
+ test xexp = x/dev/null
+ test xouttail = x/dev/null
+ return 2
+ compare_ exp outtail
+ LC_ALL=C
+ diff -u exp outtail
diff: program error
--- exp	2025-04-16 11:59:35.000000000 +0200
+++ outtail	2025-04-16 11:59:35.000000000 +0200
@@ -1,10 +0,0 @@
-@@ -1,6 +1,7 @@
--1a
-+1b
- 2
--3a
-+3b
- 4
- 5
- 6
-+7
-./ignore-matching-lines: line 44:  2654 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-matching-lines.xPAc
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-matching-lines.xPAc
+ exit 1
FAIL ignore-matching-lines (exit status: 1)

SKIP: ignore-tab-expansion
==========================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-ignore-tab-expansion.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-ignore-tab-expansion.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-ignore-tab-expansion.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-ignore-tab-expansion.
++++ echo gt-ignore-tab-expansion.XXXX
++++ wc -c
+++ template_length_=      29
++++ echo gt-ignore-tab-expansion.
++++ wc -c
+++ nx_=      25
++++ expr 29 - 25
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=93c7
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-tab-expansion.93c7
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-tab-expansion.93c7
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-tab-expansion.93c7
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-tab-expansion.93c7
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-tab-expansion.93c7
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ printf '\b\b\tx\n'
+ printf '\b\b        x\n'
+ diff -E a b
+ fail=1
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ emit_diff_u_header_ /dev/null out
+ printf '%s\n' 'diff -u /dev/null out' '--- /dev/null	1970-01-01' '+++ out	1970-01-01'
diff -u /dev/null out
--- /dev/null	1970-01-01
+++ out	1970-01-01
+ sed 's/^/+/' out
+1a1
+        x
+ return 1
+ return 1
+ fail=1
+ printf '\r\b\tx\n'
+ printf '\r\b        x\n'
+ diff -E a b
+ fail=1
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ emit_diff_u_header_ /dev/null out
+ printf '%s\n' 'diff -u /dev/null out' '--- /dev/null	1970-01-01' '+++ out	1970-01-01'
diff -u /dev/null out
--- /dev/null	1970-01-01
+++ out	1970-01-01
+ sed 's/^/+/' out
+1a1
        x
+ return 1
+ return 1
+ fail=1
+ printf '\t \b\tx\n'
+ printf '\t \b        x\n'
+ diff -E a b
+ fail=1
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ emit_diff_u_header_ /dev/null out
+ printf '%s\n' 'diff -u /dev/null out' '--- /dev/null	1970-01-01' '+++ out	1970-01-01'
diff -u /dev/null out
--- /dev/null	1970-01-01
+++ out	1970-01-01
+ sed 's/^/+/' out
+1a1
+> 	        x
+ return 1
+ return 1
+ fail=1
+ printf '\n\b\tx\n'
+ printf '\n\b        x\n'
+ diff -E a b
+ fail=1
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ emit_diff_u_header_ /dev/null out
+ printf '%s\n' 'diff -u /dev/null out' '--- /dev/null	1970-01-01' '+++ out	1970-01-01'
diff -u /dev/null out
--- /dev/null	1970-01-01
+++ out	1970-01-01
+ sed 's/^/+/' out
+2a2
+>        x
+ return 1
+ return 1
+ fail=1
+ require_utf8_locale_
+ local locale
+ test '' '!=' UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ skip_ 'No UTF-8 locale found'
+ warn_ 'ignore-tab-expansion: skipped test: No UTF-8 locale found'
+ printf '%s\n' 'ignore-tab-expansion: skipped test: No UTF-8 locale found'
ignore-tab-expansion: skipped test: No UTF-8 locale found
+ test 9 = 2
+ printf '%s\n' 'ignore-tab-expansion: skipped test: No UTF-8 locale found'
+ sed 1q
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-tab-expansion.93c7
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-ignore-tab-expansion.93c7
+ exit 77
SKIP ignore-tab-expansion (exit status: 77)

FAIL: label-vs-func
===================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-label-vs-func.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-label-vs-func.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-label-vs-func.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-label-vs-func.
++++ echo gt-label-vs-func.XXXX
++++ wc -c
+++ template_length_=      22
++++ echo gt-label-vs-func.
++++ wc -c
+++ nx_=      18
++++ expr 22 - 18
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=kneX
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-label-vs-func.kneX
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-label-vs-func.kneX
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-label-vs-func.kneX
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-label-vs-func.kneX
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-label-vs-func.kneX
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ cat
+ cat
+ sed s/1/2/ a
+ returns_ 1 diff -p -u0 a b
+ tail -3 out
+ mv k out
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
--- exp	2025-04-16 11:59:38.000000000 +0200
+++ out	2025-04-16 11:59:38.000000000 +0200
@@ -1,3 +1,3 @@
 @@ -4 +4 @@ label:
 -1;
 +2;
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-label-vs-func.kneX
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-label-vs-func.kneX
+ exit 1
FAIL label-vs-func (exit status: 1)

XPASS: large-subopt
===================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-large-subopt.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-large-subopt.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-large-subopt.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-large-subopt.
++++ echo gt-large-subopt.XXXX
++++ wc -c
+++ template_length_=      21
++++ echo gt-large-subopt.
++++ wc -c
+++ nx_=      17
++++ expr 21 - 17
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=KYXi
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-large-subopt.KYXi
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-large-subopt.KYXi
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-large-subopt.KYXi
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-large-subopt.KYXi
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-large-subopt.KYXi
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ require_perl_
+ : perl
+ perl -e 'use warnings'
+ fail=0
+ diff -u /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/large-subopt.in1 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/large-subopt.in2
+ perl -n0 -e '/\n-2\n(\+L: 361\n){2}\+2\n/ and do {$e=1; last}; END{exit !$e}'
diff: program error
+ Exit 0
+ set +e
+ exit 0
+ exit 0
+ remove_tmp_
+ __st=0
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-large-subopt.KYXi
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-large-subopt.KYXi
+ exit 0
XPASS large-subopt (exit status: 0)

FAIL: new-file
==============

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-new-file.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-new-file.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-new-file.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-new-file.
++++ echo gt-new-file.XXXX
++++ wc -c
+++ template_length_=      17
++++ echo gt-new-file.
++++ wc -c
+++ nx_=      13
++++ expr 17 - 13
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=QPe4
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-new-file.QPe4
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-new-file.QPe4
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-new-file.QPe4
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-new-file.QPe4
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-new-file.QPe4
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ echo a
+ echo '0a1
> a'
+ returns_ 1 diff -N b a
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 11:59:40.000000000 +0200
+++ out	2025-04-16 11:59:40.000000000 +0200
@@ -1,2 +1,2 @@
 0a1
+> a
+./new-file: line 14:  3126 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff -N b -
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 11:59:40.000000000 +0200
+++ out	2025-04-16 11:59:40.000000000 +0200
@@ -1,2 +1,2 @@
 0a1
+> a
+./new-file: line 17:  3129 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff --unidirectional-new-file b -
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 11:59:40.000000000 +0200
+++ out	2025-04-16 11:59:40.000000000 +0200
@@ -1,2 +1,2 @@
 0a1
+> a
+./new-file: line 20:  3132 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ echo '1d0
< a'
+ returns_ 1 diff -N - b
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 11:59:40.000000000 +0200
+++ out	2025-04-16 11:59:41.000000000 +0200
@@ -1,2 +1,2 @@
 1d0
+< a
+./new-file: line 26:  3135 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 2 diff --unidirectional-new-file - b
diff: b: No such file or directory
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-new-file.QPe4
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-new-file.QPe4
+ exit 1
FAIL new-file (exit status: 1)

FAIL: no-dereference
====================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-no-dereference.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-no-dereference.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-no-dereference.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-no-dereference.
++++ echo gt-no-dereference.XXXX
++++ wc -c
+++ template_length_=      23
++++ echo gt-no-dereference.
++++ wc -c
+++ nx_=      19
++++ expr 23 - 19
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=vYv4
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-dereference.vYv4
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-dereference.vYv4
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-dereference.vYv4
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-dereference.vYv4
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-dereference.vYv4
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ echo 'Simple contents'
+ echo 'Sample contents'
+ echo 'Sample contents'
+ ln -s regular1 symlink1
+ ln -s regular1 symlink1bis
+ ln -s regular2 symlink2
+ ln -s regular3 symlink3
+ returns_ 1 diff --no-dereference regular1 regular2
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
diff: program error
--- expected	2025-04-16 11:59:41.000000000 +0200
+++ out	2025-04-16 11:59:41.000000000 +0200
@@ -2,3 +1,4 @@
 < Simple contents
 ---
 > Sample contents
+> Sample contents
+./no-dereference: line 24:  3229 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff --no-dereference regular1 symlink1
+ fail=1
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
--- expected	2025-04-16 11:59:41.000000000 +0200
+++ out	2025-04-16 11:59:41.000000000 +0200
@@ -1 +0,0 @@
-File regular1 is a regular file while file symlink1 is a symbolic link
+ fail=1
+ returns_ 1 diff --no-dereference symlink1 regular1
+ fail=1
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
--- expected	2025-04-16 11:59:42.000000000 +0200
+++ out	2025-04-16 11:59:41.000000000 +0200
@@ -1 +0,0 @@
-File symlink1 is a symbolic link while file regular1 is a regular file
+ fail=1
+ diff --no-dereference symlink1 symlink1bis
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ return 0
+ return 0
+ LC_ALL=C
+ returns_ 1 diff --no-dereference symlink1 symlink2
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
--- expected	2025-04-16 11:59:42.000000000 +0200
+++ out	2025-04-16 11:59:42.000000000 +0200
@@ -1 +1,4 @@
-Symbolic links 'symlink1' -> 'regular1' and 'symlink2' -> 'regular2' differ
+1c1
+< Simple contents
+---
+> Sample contents
+ fail=1
+ LC_ALL=C
+ returns_ 1 diff --no-dereference symlink2 symlink3
+ fail=1
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
--- expected	2025-04-16 11:59:42.000000000 +0200
+++ out	2025-04-16 11:59:42.000000000 +0200
@@ -1 +0,0 @@
-Symbolic links 'symlink2' -> 'regular2' and 'symlink3' -> 'regular3' differ
+ fail=1
+ mkdir subdir
+ ln -s loop loop
+ ln -s loop subdir/loop
+ diff --no-dereference loop subdir
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ return 0
+ return 0
+ mkdir subdir1a
+ mkdir subdir1b
+ ln -s nonexistent subdir1a/foo
+ ln -s ../regular1 subdir1a/bar
+ returns_ 1 diff -r --no-dereference subdir1a subdir1b
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
diff: program error
--- expected	2025-04-16 11:59:42.000000000 +0200
+++ out	2025-04-16 11:59:42.000000000 +0200
@@ -1,2 +1,2 @@
 Only in subdir1a: bar
+Only in subdir1a: foo
+./no-dereference: line 76:  3258 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ mkdir subdir2a
+ mkdir subdir2b
+ ln -s nonexistent subdir2b/foo
+ ln -s ../regular1 subdir2b/bar
+ returns_ 1 diff -r --no-dereference subdir2a subdir2b
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
diff: program error
--- expected	2025-04-16 11:59:42.000000000 +0200
+++ out	2025-04-16 11:59:42.000000000 +0200
@@ -1,2 +1,2 @@
 Only in subdir2b: bar
+Only in subdir2b: foo
+./no-dereference: line 88:  3266 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ mkdir subdir3a
+ mkdir subdir3b
+ cp regular1 subdir3a/foo
+ cp regular2 subdir3b/foo
+ returns_ 1 diff -r --no-dereference subdir3a subdir3b
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
diff: program error
--- expected	2025-04-16 11:59:42.000000000 +0200
+++ out	2025-04-16 11:59:42.000000000 +0200
@@ -3,3 +1,5 @@
 < Simple contents
 ---
 > Sample contents
+---
+> Sample contents
+./no-dereference: line 103:  3274 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ mkdir subdir4a
+ mkdir subdir4b
+ cp regular1 subdir4a/foo
+ ln -s ../regular1 subdir4b/foo
+ returns_ 1 diff -r --no-dereference subdir4a subdir4b
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
--- expected	2025-04-16 11:59:42.000000000 +0200
+++ out	2025-04-16 11:59:42.000000000 +0200
@@ -1 +1 @@
 File subdir4a/foo is a regular file while file subdir4b/foo is a symbolic link
+ fail=1
+ mkdir subdir5a
+ mkdir subdir5b
+ ln -s ../regular1 subdir5a/foo
+ cp regular1 subdir5b/foo
+ returns_ 1 diff -r --no-dereference subdir5a subdir5b
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
--- expected	2025-04-16 11:59:42.000000000 +0200
+++ out	2025-04-16 11:59:42.000000000 +0200
@@ -1 +1 @@
 File subdir5a/foo is a symbolic link while file subdir5b/foo is a regular file
+ fail=1
+ mkdir subdir6a
+ mkdir subdir6b
+ ln -s ../regular1 subdir6a/foo
+ ln -s ../regular1 subdir6b/foo
+ diff -r --no-dereference subdir6a subdir6b
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ return 0
+ return 0
+ mkdir subdir7a
+ mkdir subdir7b
+ ln -s ../regular1 subdir7a/foo
+ ln -s ../regular2 subdir7b/foo
+ LC_ALL=C
+ returns_ 1 diff -r --no-dereference subdir7a subdir7b
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
--- expected	2025-04-16 11:59:42.000000000 +0200
+++ out	2025-04-16 11:59:42.000000000 +0200
@@ -1 +1 @@
 Symbolic links 'subdir7a/foo' -> '../regular1' and 'subdir7b/foo' -> '../regular2' differ
+ fail=1
+ mkdir subdir8a
+ mkdir subdir8b
+ ln -s ../regular2 subdir8a/foo
+ ln -s ../regular3 subdir8b/foo
+ LC_ALL=C
+ returns_ 1 diff -r --no-dereference subdir8a subdir8b
+ cat
+ compare expected out
+ compare_dev_null_ expected out
+ test 2 = 2
+ test xexpected = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ expected out
+ LC_ALL=C
+ diff -u expected out
--- expected	2025-04-16 11:59:43.000000000 +0200
+++ out	2025-04-16 11:59:43.000000000 +0200
@@ -1 +1 @@
 Symbolic links 'subdir8a/foo' -> '../regular2' and 'subdir8b/foo' -> '../regular3' differ
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-dereference.vYv4
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-dereference.vYv4
+ exit 1
FAIL no-dereference (exit status: 1)

FAIL: no-newline-at-eof
=======================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-no-newline-at-eof.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-no-newline-at-eof.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-no-newline-at-eof.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-no-newline-at-eof.
++++ echo gt-no-newline-at-eof.XXXX
++++ wc -c
+++ template_length_=      26
++++ echo gt-no-newline-at-eof.
++++ wc -c
+++ nx_=      22
++++ expr 26 - 22
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=7tI1
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-newline-at-eof.7tI1
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-newline-at-eof.7tI1
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-newline-at-eof.7tI1
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-newline-at-eof.7tI1
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-newline-at-eof.7tI1
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ printf '\n1'
+ printf '\n0\n\n1'
+ cat
+ cat
+ fail=0
+ opt=--suppress-blank-empty
+ returns_ 1 diff --suppress-blank-empty -U1 a b
+ fail=1
+ sed -n '/^@@/,$p' out
+ mv k out
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 11:59:43.000000000 +0200
+++ out	2025-04-16 11:59:43.000000000 +0200
@@ -1,6 +1,7 @@
 @@ -1,2 +1,4 @@
 
-+0
-+
- 1
-\ No newline at end of file
++0
++
++1
+\ No newline at end of file
++
+./no-newline-at-eof: line 37:  3403 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ emit_diff_u_header_ /dev/null err
+ printf '%s\n' 'diff -u /dev/null err' '--- /dev/null	1970-01-01' '+++ err	1970-01-01'
diff -u /dev/null err
--- /dev/null	1970-01-01
+++ err	1970-01-01
+ sed 's/^/+/' err
+diff: program error
+./no-newline-at-eof: line 34:  3400 Abort trap              "$@"
+ return 1
+ return 1
+ fail=1
+ echo
+ returns_ 1 diff --suppress-blank-empty -U1 a b
+ fail=1
+ sed -n '/^@@/,$p' out
+ mv k out
+ compare exp2 out
+ compare_dev_null_ exp2 out
+ test 2 = 2
+ test xexp2 = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp2 out
+ LC_ALL=C
+ diff -u exp2 out
diff: program error
--- exp2	2025-04-16 11:59:43.000000000 +0200
+++ out	2025-04-16 11:59:44.000000000 +0200
@@ -1,7 +1,4 @@
 @@ -1,2 +1,4 @@
-
--1
-+0
-+
-+1
-\ No newline at end of file
+-
+-1
+-
+./no-newline-at-eof: line 47:  3409 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ emit_diff_u_header_ /dev/null err
+ printf '%s\n' 'diff -u /dev/null err' '--- /dev/null	1970-01-01' '+++ err	1970-01-01'
diff -u /dev/null err
--- /dev/null	1970-01-01
+++ err	1970-01-01
+ sed 's/^/+/' err
+diff: program error
+./no-newline-at-eof: line 44:  3406 Abort trap              "$@"
+ return 1
+ return 1
+ fail=1
+ printf a
+ printf b
+ returns_ 1 diff -B a b
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-newline-at-eof.7tI1
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-no-newline-at-eof.7tI1
+ exit 1
FAIL no-newline-at-eof (exit status: 1)

SKIP: side-by-side
==================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-side-by-side.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-side-by-side.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-side-by-side.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-side-by-side.
++++ echo gt-side-by-side.XXXX
++++ wc -c
+++ template_length_=      21
++++ echo gt-side-by-side.
++++ wc -c
+++ nx_=      17
++++ expr 21 - 17
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=91Cl
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side.91Cl
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side.91Cl
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side.91Cl
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side.91Cl
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side.91Cl
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ require_utf8_locale_
+ local locale
+ test '' '!=' UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ test '' = UTF-8
+ skip_ 'No UTF-8 locale found'
+ warn_ 'side-by-side: skipped test: No UTF-8 locale found'
+ printf '%s\n' 'side-by-side: skipped test: No UTF-8 locale found'
side-by-side: skipped test: No UTF-8 locale found
+ test 9 = 2
+ printf '%s\n' 'side-by-side: skipped test: No UTF-8 locale found'
+ sed 1q
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side.91Cl
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side.91Cl
+ exit 77
SKIP side-by-side (exit status: 77)

FAIL: side-by-side-seq
======================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-side-by-side-seq.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-side-by-side-seq.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-side-by-side-seq.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-side-by-side-seq.
++++ echo gt-side-by-side-seq.XXXX
++++ wc -c
+++ template_length_=      25
++++ echo gt-side-by-side-seq.
++++ wc -c
+++ nx_=      21
++++ expr 25 - 21
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=mUuL
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side-seq.mUuL
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side-seq.mUuL
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side-seq.mUuL
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side-seq.mUuL
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side-seq.mUuL
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ seq 1 100
+ start=1
+ final=100
+ awk 'BEGIN{for(i=1;i<=100;i++) print i}'
+ seq 1 49
+ start=1
+ final=49
+ awk 'BEGIN{for(i=1;i<=49;i++) print i}'
+ seq 51 100
+ start=51
+ final=100
+ awk 'BEGIN{for(i=51;i<=100;i++) print i}'
+ awk '
  BEGIN {
    for (i = 1; i <= 100; i++) {
      if (i == 50) {
        print "50   <"
      } else {
        printf "%d\t%d\n", i, i
      }
    }
  }
'
+ returns_ 1 diff -yW 11 in1 in2
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
--- exp	2025-04-16 11:59:46.000000000 +0200
+++ out	2025-04-16 11:59:46.000000000 +0200
@@ -98,3 +93,8 @@
 98	98
 99	99
 100	100
+96	96
+97	97
+98	98
+99	99
+100	100
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side-seq.mUuL
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-side-by-side-seq.mUuL
+ exit 1
FAIL side-by-side-seq (exit status: 1)

FAIL: stdin
===========

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-stdin.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-stdin.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-stdin.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-stdin.
++++ echo gt-stdin.XXXX
++++ wc -c
+++ template_length_=      14
++++ echo gt-stdin.
++++ wc -c
+++ nx_=      10
++++ expr 14 - 10
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=ypLT
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-stdin.ypLT
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-stdin.ypLT
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-stdin.ypLT
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-stdin.ypLT
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-stdin.ypLT
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ echo a
+ echo b
+ cat
+ returns_ 1 diff -u - b
+ sed -e 's/^\([-+*][-+*][-+*] [^	]*\)	.*/\1/' out
+ compare exp outk
+ compare_dev_null_ exp outk
+ test 2 = 2
+ test xexp = x/dev/null
+ test xoutk = x/dev/null
+ return 2
+ compare_ exp outk
+ LC_ALL=C
+ diff -u exp outk
diff: program error
--- exp	2025-04-16 11:59:48.000000000 +0200
+++ outk	2025-04-16 11:59:48.000000000 +0200
@@ -3,3 +1,5 @@
 @@ -1 +1 @@
 -a
 +b
+-a
++b
+./stdin: line 21:  3878 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ mkdir d
+ echo a
+ diff -u - a
+ fail=1
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ emit_diff_u_header_ /dev/null out
+ printf '%s\n' 'diff -u /dev/null out' '--- /dev/null	1970-01-01' '+++ out	1970-01-01'
diff -u /dev/null out
--- /dev/null	1970-01-01
+++ out	1970-01-01
+ sed 's/^/+/' out
+--- -/a	2025-04-16 11:59:48.000000000 +0200
++++ a	2025-04-16 11:59:48.000000000 +0200
+@@ -1 +1 @@
+ a
+ return 1
+ return 1
+ fail=1
+ compare /dev/null err
+ compare_dev_null_ /dev/null err
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s err
+ return 0
+ return 0
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-stdin.ypLT
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-stdin.ypLT
+ exit 1
FAIL stdin (exit status: 1)

FAIL: filename-quoting
======================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-filename-quoting.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-filename-quoting.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-filename-quoting.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-filename-quoting.
++++ echo gt-filename-quoting.XXXX
++++ wc -c
+++ template_length_=      25
++++ echo gt-filename-quoting.
++++ wc -c
+++ nx_=      21
++++ expr 25 - 21
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=WhHn
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-filename-quoting.WhHn
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-filename-quoting.WhHn
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-filename-quoting.WhHn
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-filename-quoting.WhHn
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-filename-quoting.WhHn
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ cat
+ cat
+ cat
+ mkdir a b
+ echo space
+ returns_ 1 diff -N -r a b
+ sed -e 's/^\([-+*][-+*][-+*] [^	]*\)	.*/\1/' out
+ mv k out
++ echo
++ tr ' ' _
+ compare exp- out
+ compare_dev_null_ exp- out
+ test 2 = 2
+ test xexp- = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp- out
+ LC_ALL=C
+ diff -u exp- out
--- exp-	2025-04-16 11:59:49.000000000 +0200
+++ out	2025-04-16 11:59:50.000000000 +0200
@@ -1,3 +1,3 @@
 diff -N -r "a/ " "b/ "
 0a1
 > space
+ fail=1
+ returns_ 1 diff -N -r -u a b
+ fail=1
+ sed -e 's/^\([-+*][-+*][-+*] [^	]*\)	.*/\1/' out
+ mv k out
++ echo -u
++ tr ' ' _
+ compare exp--u out
+ compare_dev_null_ exp--u out
+ test 2 = 2
+ test xexp--u = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp--u out
+ LC_ALL=C
+ diff -u exp--u out
diff: program error
--- exp--u	2025-04-16 11:59:50.000000000 +0200
+++ out	2025-04-16 11:59:50.000000000 +0200
@@ -3,3 +1,6 @@
 +++ "b/ "
 @@ -0,0 +1 @@
 +space
+@@ -0,0 +1 @@
++space
++
+./filename-quoting: line 39:  4076 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff -N -r -c a b
+ sed -e 's/^\([-+*][-+*][-+*] [^	]*\)	.*/\1/' out
+ mv k out
++ echo -c
++ tr ' ' _
+ compare exp--c out
+ compare_dev_null_ exp--c out
+ test 2 = 2
+ test xexp--c = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp--c out
+ LC_ALL=C
+ diff -u exp--c out
diff: program error
--- exp--c	2025-04-16 11:59:50.000000000 +0200
+++ out	2025-04-16 11:59:50.000000000 +0200
@@ -5,3 +1,7 @@
 *** 0 ****
 --- 1 ----
 + space
+***************
+*** 0 ****
+--- 1 ----
++ space
+./filename-quoting: line 39:  4084 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ rm -f 'b/ '
+ cat
++ printf '\t'
+ tab=	
++ printf '\001'
+ x01=
+ echo tab
+ echo one
+ returns_ 1 diff -u 'a/	' $'b/\001'
+ sed -e 's/^\([-+*][-+*][-+*] [^	]*\)	.*/\1/' out
+ mv k out
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 11:59:50.000000000 +0200
+++ out	2025-04-16 11:59:50.000000000 +0200
@@ -3,3 +1,5 @@
 @@ -1 +1 @@
 -tab
 +one
+-tab
++one
+./filename-quoting: line 59:  4093 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-filename-quoting.WhHn
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-filename-quoting.WhHn
+ exit 1
FAIL filename-quoting (exit status: 1)

SKIP: strip-trailing-cr
=======================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-strip-trailing-cr.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-strip-trailing-cr.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-strip-trailing-cr.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-strip-trailing-cr.
++++ echo gt-strip-trailing-cr.XXXX
++++ wc -c
+++ template_length_=      26
++++ echo gt-strip-trailing-cr.
++++ wc -c
+++ nx_=      22
++++ expr 26 - 22
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=6BkZ
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-strip-trailing-cr.6BkZ
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-strip-trailing-cr.6BkZ
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-strip-trailing-cr.6BkZ
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-strip-trailing-cr.6BkZ
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-strip-trailing-cr.6BkZ
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ require_valgrind_
+ require_timeout_
+ skip_ your system lacks the timeout program
+ warn_ 'strip-trailing-cr: skipped test: your' system lacks the timeout program
+ printf '%s\n' 'strip-trailing-cr: skipped test: your system lacks the timeout program'
strip-trailing-cr: skipped test: your system lacks the timeout program
+ test 9 = 2
+ printf '%s\n' 'strip-trailing-cr: skipped test: your system lacks the timeout program'
+ sed 1q
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-strip-trailing-cr.6BkZ
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-strip-trailing-cr.6BkZ
+ exit 77
SKIP strip-trailing-cr (exit status: 77)

FAIL: colors
============

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-colors.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-colors.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-colors.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-colors.
++++ echo gt-colors.XXXX
++++ wc -c
+++ template_length_=      15
++++ echo gt-colors.
++++ wc -c
+++ nx_=      11
++++ expr 15 - 11
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=9Mux
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-colors.9Mux
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-colors.9Mux
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-colors.9Mux
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-colors.9Mux
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-colors.9Mux
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ TZ=UTC0
+ export TZ
+ fail=0
+ echo a
+ echo b
++ diff -u a b
++ grep '\.'
++ echo .000000000
+ nanosecond_zeros=.000000000
+ epoch=1970-01-01 00:00:00
+ touch -t 197001010000.00 a b
++ printf '\033'
+ e=
++ printf '\t'
+ tab=	
+ rs=0
+ hd=1
+ ad=32
+ de=31
+ ln=36
+ returns_ 1 diff --color=auto a b
+ gen_exp_default
+ printf %s '1c1
< a
---
> b
'
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 09:59:52.000000000 +0000
+++ out	2025-04-16 09:59:52.000000000 +0000
@@ -2,3 +1,4 @@
 < a
 ---
 > b
+> b
+./colors: line 90:  4367 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 env PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin TERM=dumb diff ---presume-output-tty --color=auto a b
+ gen_exp_default
+ printf %s '1c1
< a
---
> b
'
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 09:59:52.000000000 +0000
+++ out	2025-04-16 09:59:52.000000000 +0000
@@ -2,3 +1,4 @@
 < a
 ---
 > b
+> b
+./colors: line 96:  4370 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff --color=never a b
+ gen_exp_default
+ printf %s '1c1
< a
---
> b
'
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 09:59:52.000000000 +0000
+++ out	2025-04-16 09:59:52.000000000 +0000
@@ -2,3 +1,4 @@
 < a
 ---
 > b
+> b
+./colors: line 100:  4375 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff a b
+ gen_exp_default
+ printf %s '1c1
< a
---
> b
'
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 09:59:52.000000000 +0000
+++ out	2025-04-16 09:59:52.000000000 +0000
@@ -2,3 +1,4 @@
 < a
 ---
 > b
+> b
+./colors: line 104:  4378 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff --color=always a b
+ gen_exp_default_colors
++ printf '[0m'
+ local 'rs=[0m'
++ printf '[1m'
+ local 'hd=[1m'
++ printf '[32m'
+ local 'ad=[32m'
++ printf '[31m'
+ local 'de=[31m'
++ printf '[36m'
+ local 'ln=[36m'
+ printf %s '[36m1c1[0m
[31m< a[0m
---
[32m> b[0m
'
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 09:59:52.000000000 +0000
+++ out	2025-04-16 09:59:52.000000000 +0000
@@ -2,3 +1,4 @@
 [31m< a[0m
 ---
 [32m> b[0m
+[32m> b[0m
+./colors: line 108:  4387 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff -u --color=always a b
+ gen_exp_u
+ local 'epoch_plus=1970-01-01 00:00:00.000000000 +0000'
++ printf '[0m'
+ local 'rs=[0m'
++ printf '[1m'
+ local 'hd=[1m'
++ printf '[32m'
+ local 'ad=[32m'
++ printf '[31m'
+ local 'de=[31m'
++ printf '[36m'
+ local 'ln=[36m'
+ printf %s '[1m--- a	1970-01-01 00:00:00.000000000 +0000[0m
[1m+++ b	1970-01-01 00:00:00.000000000 +0000[0m
[36m@@ -1 +1 @@[0m
[31m-a[0m
[32m+b[0m
'
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 09:59:53.000000000 +0000
+++ out	2025-04-16 09:59:53.000000000 +0000
@@ -3,3 +1,5 @@
 [36m@@ -1 +1 @@[0m
 [31m-a[0m
 [32m+b[0m
+[31m-a[0m
+[32m+b[0m
+./colors: line 112:  4395 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ returns_ 1 diff -c --color=always a b
+ gen_exp_c
+ local 'epoch_posix_1003_1_2001=Thu Jan  1 00:00:00 1970'
++ printf '[0m'
+ local 'rs=[0m'
++ printf '[1m'
+ local 'hd=[1m'
++ printf '[32m'
+ local 'ad=[32m'
++ printf '[31m'
+ local 'de=[31m'
++ printf '[36m'
+ local 'ln=[36m'
+ printf %s '[1m*** a	Thu Jan  1 00:00:00 1970[0m
[1m--- b	Thu Jan  1 00:00:00 1970[0m
***************
[36m*** 1 ****[0m
[31m! a[0m
[36m--- 1 ----[0m
[32m! b[0m
'
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 09:59:53.000000000 +0000
+++ out	2025-04-16 09:59:53.000000000 +0000
@@ -5,3 +1,7 @@
 [31m! a[0m
 [36m--- 1 ----[0m
 [32m! b[0m
+[36m*** 1 ****[0m
+[31m! a[0m
+[36m--- 1 ----[0m
+[32m! b[0m
+./colors: line 116:  4405 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ rs=0
+ hd=33
+ ad=34
+ de=35
+ ln=36
+ returns_ 1 diff -u --color=always --palette=rs=0:hd=33:ad=34:de=35:ln=36 a b
+ gen_exp_u
+ local 'epoch_plus=1970-01-01 00:00:00.000000000 +0000'
++ printf '[0m'
+ local 'rs=[0m'
++ printf '[33m'
+ local 'hd=[33m'
++ printf '[34m'
+ local 'ad=[34m'
++ printf '[35m'
+ local 'de=[35m'
++ printf '[36m'
+ local 'ln=[36m'
+ printf %s '[33m--- a	1970-01-01 00:00:00.000000000 +0000[0m
[33m+++ b	1970-01-01 00:00:00.000000000 +0000[0m
[36m@@ -1 +1 @@[0m
[35m-a[0m
[34m+b[0m
'
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C
+ diff -u exp out
diff: program error
--- exp	2025-04-16 09:59:53.000000000 +0000
+++ out	2025-04-16 09:59:53.000000000 +0000
@@ -3,3 +1,5 @@
 [36m@@ -1 +1 @@[0m
 [35m-a[0m
 [34m+b[0m
+[35m-a[0m
+[34m+b[0m
+./colors: line 122:  4413 Abort trap              LC_ALL=C diff $diff_opt_ "$@"
+ fail=1
+ mkfifo fifo
+ printf %1000000s-a
+ printf %1000000s-b
+ head -c 10
+ diff --color=always ---presume-output-tty a b
head: illegal option -- c
Usage: head [-n lines] [file ...]
diff: standard output: Broken pipe
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-colors.9Mux
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-colors.9Mux
+ exit 1
FAIL colors (exit status: 1)

SKIP: y2038-vs-32bit
====================

++ initial_cwd_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests gt-y2038-vs-32bit.XXXX
+++ destdir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+++ template_=gt-y2038-vs-32bit.XXXX
+++ MAX_TRIES_=4
+++ destdir_slash_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/
++++ unset TMPDIR
+++ d=
++++ echo gt-y2038-vs-32bit.XXXX
++++ sed 's/XX*$//'
+++ base_template_=gt-y2038-vs-32bit.
++++ echo gt-y2038-vs-32bit.XXXX
++++ wc -c
+++ template_length_=      23
++++ echo gt-y2038-vs-32bit.
++++ wc -c
+++ nx_=      19
++++ expr 23 - 19
+++ nx_=4
+++ err_=
+++ i_=1
+++ :
++++ rand_bytes_ 4
++++ n_=4
++++ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ dev_rand_=/dev/urandom
++++ test -r /dev/urandom
++++ dd ibs=4 count=1 if=/dev/urandom
++++ LC_ALL=C
++++ tr -c abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 01234567abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
++++ return
+++ X_=tkmM
+++ candidate_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-y2038-vs-32bit.tkmM
++++ mkdir -m 0700 /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-y2038-vs-32bit.tkmM
+++ err_=
+++ echo /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-y2038-vs-32bit.tkmM
+++ return
++ test_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-y2038-vs-32bit.tkmM
++ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-y2038-vs-32bit.tkmM
++ srcdir=../.
++ builddir=..
++ export srcdir builddir
++ gl_init_sh_nl_=

++ IFS= 	

+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ saved_IFS= 	

++ IFS=:
++ new_PATH=
++ IFS= 	

++ test -d /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src
++ IFS= 	

++ test -d /opt/local/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin
++ IFS= 	

++ test -d /opt/local/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin
++ IFS= 	

++ test -d /bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin
++ IFS= 	

++ test -d /sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin
++ IFS= 	

++ test -d /usr/bin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin
++ IFS= 	

++ test -d /usr/sbin/.
++ new_PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ IFS= 	

++ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
++ export PATH
++ trap remove_tmp_ EXIT
+ path_prepend_ ../src
+ test 1 '!=' 0
+ path_dir_=../src
+ abs_path_dir_=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ PATH=/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src:/opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/src:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
+ create_exe_shims_ /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/../src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ fail=0
+ touch -t 203901010000 in
touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]
+ skip_ 'touch -t 2039... failed'
+ warn_ 'y2038-vs-32bit: skipped test: touch -t 2039... failed'
+ printf '%s\n' 'y2038-vs-32bit: skipped test: touch -t 2039... failed'
y2038-vs-32bit: skipped test: touch -t 2039... failed
+ test 9 = 2
+ printf '%s\n' 'y2038-vs-32bit: skipped test: touch -t 2039... failed'
+ sed 1q
+ Exit 77
+ set +e
+ exit 77
+ exit 77
+ remove_tmp_
+ __st=77
+ cleanup_
+ :
+ test '' = yes
+ cd /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests
+ chmod -R u+rwx /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-y2038-vs-32bit.tkmM
+ rm -rf /opt/local/var/macports/build/nue.de.rsync.macports.org_macports_release_tarballs_ports_sysutils_diffutils/diffutils/work/diffutils-3.12/tests/gt-y2038-vs-32bit.tkmM
+ exit 77
SKIP y2038-vs-32bit (exit status: 77)

============================================================================
Testsuite summary for GNU diffutils 3.12
============================================================================
# TOTAL: 33
# PASS:  6
# SKIP:  6
# XFAIL: 0
# FAIL:  20
# XPASS: 1
# ERROR: 0
============================================================================
See tests/test-suite.log for debugging.
Some test(s) failed.  Please report this to [email-masked],
together with the test-suite.log file (gzipped) and your system
information.  Thanks.
============================================================================

This is the list of known UTF-8 locales (:

af_ZA.UTF-8
am_ET.UTF-8
be_BY.UTF-8
bg_BG.UTF-8
ca_ES.UTF-8
cs_CZ.UTF-8
da_DK.UTF-8
de_AT.UTF-8
de_CH.UTF-8
de_DE.UTF-8
el_GR.UTF-8
en_AU.UTF-8
en_CA.UTF-8
en_GB.UTF-8
en_IE.UTF-8
en_NZ.UTF-8
en_US.UTF-8
es_ES.UTF-8
et_EE.UTF-8
eu_ES.UTF-8
fi_FI.UTF-8
fr_BE.UTF-8
fr_CA.UTF-8
fr_CH.UTF-8
fr_FR.UTF-8
he_IL.UTF-8
hr_HR.UTF-8
hu_HU.UTF-8
hy_AM.UTF-8
is_IS.UTF-8
it_CH.UTF-8
it_IT.UTF-8
ja_JP.UTF-8
kk_KZ.UTF-8
ko_KR.UTF-8
lt_LT.UTF-8
nl_BE.UTF-8
nl_NL.UTF-8
no_NO.UTF-8
pl_PL.UTF-8
pt_BR.UTF-8
pt_PT.UTF-8
ro_RO.UTF-8
ru_RU.UTF-8
sk_SK.UTF-8
sl_SI.UTF-8
sr_YU.UTF-8
sv_SE.UTF-8
tr_TR.UTF-8
uk_UA.UTF-8
zh_CN.UTF-8
zh_HK.UTF-8
zh_TW.UTF-8

--
G
  Pete

Without vi there is only GNU Emacs