From: Nick Ing-Simmons Date: Mon, 22 Oct 2001 08:35:09 +0000 (+0000) Subject: All tests pass (legitimately) on ithreads X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=56a2bab7c22806897577c69e86796669bc5a9a3a;p=p5sagit%2Fp5-mst-13.2.git All tests pass (legitimately) on ithreads p4raw-id: //depot/perlio@12557 --- diff --git a/ext/threads/t/basic.t b/ext/threads/t/basic.t index 0608b5e..399b017 100755 --- a/ext/threads/t/basic.t +++ b/ext/threads/t/basic.t @@ -6,7 +6,7 @@ # # And even when that will be fixed, this is a basic # test and should not rely on shared variables -# +# # This will test the basic API, it will not use any coderefs # as they are more advanced # @@ -25,7 +25,7 @@ BEGIN { use ExtUtils::testlib; use strict; -BEGIN { print "1..15\n" }; +BEGIN { $| = 1; print "1..15\n" }; use threads; @@ -40,12 +40,12 @@ print "ok 1\n"; sub ok { my ($id, $ok, $name) = @_; - + # You have to do it this way or VMS will get confused. print $ok ? "ok $id - $name\n" : "not ok $id - $name\n"; printf "# Failed test at line %d\n", (caller)[2] unless $ok; - + return $ok; } diff --git a/perl.c b/perl.c index 06fc41f..ee2dd2f 100644 --- a/perl.c +++ b/perl.c @@ -459,6 +459,11 @@ perl_destruct(pTHXx) DEBUG_P(debprofdump()); +#if defined(PERLIO_LAYERS) + /* No more IO - including error messages ! */ + PerlIO_cleanup(aTHX); +#endif + /* The exit() function will do everything that needs doing. */ return STATUS_NATIVE_EXPORT;; } @@ -800,7 +805,7 @@ perl_destruct(pTHXx) if (PL_sv_count != 0 && ckWARN_d(WARN_INTERNAL)) Perl_warner(aTHX_ WARN_INTERNAL,"Scalars leaked: %ld\n", (long)PL_sv_count); -#if 1 && defined(PERLIO_LAYERS) +#if defined(PERLIO_LAYERS) /* No more IO - including error messages ! */ PerlIO_cleanup(aTHX); #endif