diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-11 21:40:05 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-11 21:40:05 +0000 |
commit | b9735fbe46261ffc768a05c081097581832f36c9 (patch) | |
tree | 46f991419ca930c041c7b7f84234d41072ab30a8 /ext | |
parent | 2da77b52c6d766c7561923a0acdbd03f4e614747 (diff) | |
download | perl-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.t | 4 |
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"); |