This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Handle undef values in magic.t on VMS.
authorCraig A. Berry <craigberry@mac.com>
Sat, 23 Feb 2013 18:45:11 +0000 (12:45 -0600)
committerCraig A. Berry <craigberry@mac.com>
Sat, 23 Feb 2013 18:45:11 +0000 (12:45 -0600)
commit95725928451f4350a7d74edda9a27b8c1d3382fb
tree5d169905a7e6009d40aca79b3ade3f616ec618d9
parent7c25cd544bc7d33fb15d10973aa9a30fdd5fa624
Handle undef values in magic.t on VMS.

888a67f6b95603701 added a new test that failed on VMS because it
expected the value of an undefined element in %ENV to be an empty
string, whereas on VMS it's actually a one-byte string containing
a null.  This is made possible by the fact that the logical name
API uses strings of known lengths, and made necessary by the fact
that a zero-length value (equivalence name in VMS parlance) is
not allowed.

So patch up the test implementation to handle this special case.
t/op/magic.t