* tests/date/date-tz.sh: Allow date to fail with large values for TZ
since NetBSD's tzalloc function limits them to 256 bytes.
# coreutils-8.27 would overwrite the heap with large TZ values
tz_long=$(printf '%2000s' | tr ' ' a)
-date -d "TZ=\"${tz_long}0\" 2017" || fail=1
+date -d "TZ=\"${tz_long}0\" 2017" 2> err
+
+# Gnulib's tzalloc handles arbitrarily long TZ values, but NetBSD's does not.
+case $? in
+ 0) ;;
+ *) grep '^date: invalid date' err || fail=1 ;;
+esac
Exit $fail