summaryrefslogtreecommitdiff
path: root/ext/Errno/t/Errno.t
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Errno/t/Errno.t')
-rwxr-xr-xext/Errno/t/Errno.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/Errno/t/Errno.t b/ext/Errno/t/Errno.t
index 02f5ce2ca6..a879cf23ce 100755
--- a/ext/Errno/t/Errno.t
+++ b/ext/Errno/t/Errno.t
@@ -26,7 +26,8 @@ print "not " unless &{"Errno::$err"} == $num;
print "ok 2\n";
$! = $num;
-print "not " unless $!{$err};
+# Some systems have ESUCCESS 0, that's why exists instead of boolean.
+print "not " unless exists $!{$err};
print "ok 3\n";
$! = 0;