summaryrefslogtreecommitdiff
path: root/tests/id
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2017-08-03 21:20:08 -0700
committerPádraig Brady <P@draigBrady.com>2017-08-13 21:33:01 -0700
commitcc721e9b7beb900082b6f5e498ff5430ad18a4ff (patch)
tree5c9741bc6000a98bf24cc730cfabdb772384e926 /tests/id
parent787a8876fa83f2b66ccc770269fa9d481eef3b4c (diff)
downloadcoreutils-cc721e9b7beb900082b6f5e498ff5430ad18a4ff.tar.gz
tests: avoid false failures on AIX
* tests/ln/sf-1.sh: Limit the symlink size to 1MiB to avoid memory exhaustion seen on NFS on AIX, giving: + printf '%0*d' 4294967296 0 + ./tests/ln/sf-1.sh: line 38: printf: warning: 0: Result too large * tests/id/setgid.sh: Skip the test when the adjusted gid would equal 4294967295, as that's reserved on AIX. Reported by Michael Felt.
Diffstat (limited to 'tests/id')
-rwxr-xr-xtests/id/setgid.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/id/setgid.sh b/tests/id/setgid.sh
index 61a1d993f..09f9eb0f5 100755
--- a/tests/id/setgid.sh
+++ b/tests/id/setgid.sh
@@ -20,11 +20,16 @@
print_ver_ id
require_root_
+getlimits_
+
# Construct a different group number
gp1=$NON_ROOT_GID
gp1=$(expr $gp1 + 1) ||
skip_ "failed to adjust GID $NON_ROOT_GID"
+test "$gp1" -lt $GID_T_MAX ||
+ skip_ "GID $gp1 is reserved on some systems"
+
echo $gp1 > exp || framework_failure_
# With coreutils-8.16 and earlier, id -G would print both: