summaryrefslogtreecommitdiff
path: root/t/comp
diff options
context:
space:
mode:
authorGerard Goossen <gerard@ggoossen.net>2009-11-16 13:58:24 +0100
committerRafael Garcia-Suarez <rgs@consttype.org>2009-11-21 19:26:51 +0100
commit021f53de09926928546378b3552f9240c9241dde (patch)
treea3ba92293e96921c4787a19f8b95b0f75af94303 /t/comp
parent5255f1f44de85b78264e59ed3da05d4a6d3f3671 (diff)
downloadperl-021f53de09926928546378b3552f9240c9241dde.tar.gz
Force OP_REQUIRE to scalar context at the end of ck_require and don't let it become void context. Fixes problem with require not always being in scalar context.
Diffstat (limited to 't/comp')
-rw-r--r--t/comp/require.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/comp/require.t b/t/comp/require.t
index a8684575b1..baf48870a3 100644
--- a/t/comp/require.t
+++ b/t/comp/require.t
@@ -166,9 +166,8 @@ print $x;
# Test that scalar context is forced for require
write_file('bleah.pm', <<'**BLEAH**'
-my $TODO = $i == 38 ? " # TODO " : "";
print "not " if !defined wantarray || wantarray ne '';
-print "ok $i - require() context $TODO\n";
+print "ok $i - require() context\n";
1;
**BLEAH**
);