diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-04-17 17:16:12 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-04-17 17:45:15 -0700 |
commit | d1f1d9a74b9a375a1a92c95feae48ee46f9e3858 (patch) | |
tree | 97b9f64c0c06b1642369f2bf0aa46462b91621e8 /lib/version | |
parent | d29d0fd4f08c55e04a9f14af36cd918efe3c8e87 (diff) | |
download | perl-d1f1d9a74b9a375a1a92c95feae48ee46f9e3858.tar.gz |
Fix version tests on windoze
This is a follow-up to commit 78e230aef16b.
When there is an integer overflow (which itself produces a warning),
the resulting behaviour with version objects is basically undefined.
Hence, this newly-added test, which was actually just there to make
sure there was no panic, failed.
Diffstat (limited to 'lib/version')
-rw-r--r-- | lib/version/t/coretests.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/version/t/coretests.pm b/lib/version/t/coretests.pm index bd098b28d8..3f785e4726 100644 --- a/lib/version/t/coretests.pm +++ b/lib/version/t/coretests.pm @@ -591,8 +591,7 @@ SKIP: { or diag $@; $_112478::VERSION = 1; eval { _112478->VERSION(9e99) }; - like $@, qr/this is only/, - '->VERSION(9e99) fails with the right error'; + unlike $@, qr/panic/, '->VERSION(9e99) does not panic'; } } |