This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6bbf3f
)
Test that we can do embedded 0 bytes in hints.
author
Nicholas Clark
<nick@ccl4.org>
Wed, 12 Apr 2006 16:18:30 +0000
(16:18 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Wed, 12 Apr 2006 16:18:30 +0000
(16:18 +0000)
p4raw-id: //depot/perl@27777
t/op/caller.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/caller.t
b/t/op/caller.t
index
082f595
..
c32b044
100644
(file)
--- a/
t/op/caller.t
+++ b/
t/op/caller.t
@@
-5,7
+5,7
@@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
require './test.pl';
- plan( tests => 6
4
);
+ plan( tests => 6
5
);
}
my @c;
@@
-225,3
+225,10
@@
print "# which now works inside evals\n";
eval "is(get_dooot(), 54); 1" or die $@;
EOE
}
+
+{
+ BEGIN {
+ $^H{dooot} = "FIP\0FOP\0FIDDIT\0FAP";
+ }
+ is(get_dooot(), "FIP\0FOP\0FIDDIT\0FAP", "Can do embedded 0 bytes");
+}