diff options
author | Dominic Hargreaves <dom@earth.li> | 2016-06-04 14:36:26 +0100 |
---|---|---|
committer | Dominic Hargreaves <dom@earth.li> | 2016-06-04 14:36:26 +0100 |
commit | 21866d1330b560599ac45bc24574bbd830e59a37 (patch) | |
tree | b19b4c451653e5ab93265f648f60c482c4700003 /dist | |
parent | 37808b008bc94c39c5452495998b0106d6d38f6f (diff) | |
download | perl-21866d1330b560599ac45bc24574bbd830e59a37.tar.gz |
constant: skip E2BIG test on GNU/Hurd
Hurd doesn't use 7 for E2BIG, so this string test would fail if the
test itself were more precise.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/constant/t/constant.t | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/dist/constant/t/constant.t b/dist/constant/t/constant.t index 00eddfb657..6bf0da95aa 100644 --- a/dist/constant/t/constant.t +++ b/dist/constant/t/constant.t @@ -92,11 +92,14 @@ is ZERO3, '0.0'; cmp_ok(abs(PI - 3.1416), '<', 0.0001); is Other::PI, 3.141; -use constant E2BIG => $! = 7; -cmp_ok E2BIG, '==', 7; -# This is something like "Arg list too long", but the actual message -# text may vary, so we can't test much better than this. -cmp_ok length(E2BIG), '>', 6; +SKIP: { + skip "GNU/Hurd doesn't use 7 as E2BIG", 2 if $^O eq "gnu"; + use constant E2BIG => $! = 7; + cmp_ok E2BIG, '==', 7; + # This is something like "Arg list too long", but the actual message + # text may vary, so we can't test much better than this. + cmp_ok length(E2BIG), '>', 6; +} is @warnings, 0 or diag join "\n- ", "unexpected warning:", @warnings; @warnings = (); # just in case |