Return-Path: X-Original-To: apmail-perl-modperl-cvs-archive@www.apache.org Delivered-To: apmail-perl-modperl-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83AFE9BC9 for ; Mon, 19 Mar 2012 14:13:48 +0000 (UTC) Received: (qmail 30903 invoked by uid 500); 19 Mar 2012 14:13:48 -0000 Delivered-To: apmail-perl-modperl-cvs-archive@perl.apache.org Received: (qmail 30867 invoked by uid 500); 19 Mar 2012 14:13:48 -0000 Mailing-List: contact modperl-cvs-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@perl.apache.org List-Id: Delivered-To: mailing list modperl-cvs@perl.apache.org Received: (qmail 30860 invoked by uid 99); 19 Mar 2012 14:13:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 14:13:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 14:13:47 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5FD652388860; Mon, 19 Mar 2012 14:13:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1302463 - /perl/modperl/trunk/t/lib/TestAPRlib/pool.pm Date: Mon, 19 Mar 2012 14:13:27 -0000 To: modperl-cvs@perl.apache.org From: torsten@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120319141327.5FD652388860@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: torsten Date: Mon Mar 19 14:13:26 2012 New Revision: 1302463 URL: http://svn.apache.org/viewvc?rev=1302463&view=rev Log: add another pool cleanup exception test Modified: perl/modperl/trunk/t/lib/TestAPRlib/pool.pm Modified: perl/modperl/trunk/t/lib/TestAPRlib/pool.pm URL: http://svn.apache.org/viewvc/perl/modperl/trunk/t/lib/TestAPRlib/pool.pm?rev=1302463&r1=1302462&r2=1302463&view=diff ============================================================================== --- perl/modperl/trunk/t/lib/TestAPRlib/pool.pm (original) +++ perl/modperl/trunk/t/lib/TestAPRlib/pool.pm Mon Mar 19 14:13:26 2012 @@ -11,7 +11,7 @@ use APR::Pool (); use APR::Table (); sub num_of_tests { - return 76; + return 77; } sub test { @@ -363,11 +363,13 @@ sub test { my @warnings; local $SIG{__WARN__} = sub {push @warnings, @_}; + local $@="to be preserved"; undef $p; ok t_cmp(\@warnings, [map "APR::Pool: cleanup died: $_\n", 2, 1], "exceptions thrown by cleanups"); + ok t_cmp($@, "to be preserved", '$@ is preserved'); } ### $p->clear ###