minor updates to several tests

This commit is contained in:
Chet Ramey
2024-04-22 09:19:14 -04:00
parent a06616a689
commit 8c8daff1e3
7 changed files with 140 additions and 61 deletions
+2 -1
View File
@@ -13,7 +13,8 @@
#
# tests of integer overflow for field width and precision arguments
INT_MAX=$(getconf INT_MAX)
INT_MAX=$(getconf INT_MAX 2>/dev/null)
[ -z "$INT_MAX" ] && INT_MAX=2147483647 # assume 32 bits
TOOBIG=$(( $INT_MAX * 10 ))
printf '[%*s]\n' "${TOOBIG}"