summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-07-11 21:40:05 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-07-11 21:40:05 +0000
commitb9735fbe46261ffc768a05c081097581832f36c9 (patch)
tree46f991419ca930c041c7b7f84234d41072ab30a8 /ext
parent2da77b52c6d766c7561923a0acdbd03f4e614747 (diff)
downloadperl-b9735fbe46261ffc768a05c081097581832f36c9.tar.gz
Can't get #17492 to work with -Uuseperlio otherwise (either
coredumps or warnings about failing to close _GEN_0 ensue) p4raw-id: //depot/perl@17495
Diffstat (limited to 'ext')
-rw-r--r--ext/XS/Typemap/Typemap.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/XS/Typemap/Typemap.t b/ext/XS/Typemap/Typemap.t
index 1699c991dc..accb6c40d4 100644
--- a/ext/XS/Typemap/Typemap.t
+++ b/ext/XS/Typemap/Typemap.t
@@ -313,8 +313,8 @@ if (defined $fh) {
# print to it using normal perl
ok(print $fh "$lines[1]");
- # close it using XS
- ok( T_STDIO_close( $fh ) );
+ # close it using XS if using perlio, using Perl otherwise
+ ok( $Config{useperlio} ? T_STDIO_close( $fh ) : close( $fh ) );
# open from perl, and check contents
open($fh, "< $testfile");