summaryrefslogtreecommitdiff
path: root/tests/misc/join
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/join')
-rwxr-xr-xtests/misc/join7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/misc/join b/tests/misc/join
index 4c36c32a5..2d9db78f4 100755
--- a/tests/misc/join
+++ b/tests/misc/join
@@ -18,6 +18,8 @@
use strict;
+my $limits = getlimits ();
+
# Turn off localization of executable's output.
@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
@@ -138,7 +140,10 @@ my @tv = (
[t_subst "a:1\nb:1\n", t_subst "a:2:\nb:2:\n"],
t_subst "a:1:2:\nb:1:2:\n", 0],
-['bigfield', '-1 340282366920938463463374607431768211456 -2 2',
+# fields > SIZE_MAX are silently interpreted as SIZE_MAX
+['bigfield1', "-1 $limits->{'UINTMAX_OFLOW'} -2 2",
+ ["a\n", "b\n"], " a b\n", 0],
+['bigfield2', "-1 $limits->{'SIZE_OFLOW'} -2 2",
["a\n", "b\n"], " a b\n", 0],
# FIXME: change this to ensure the diagnostic makes sense