Received: by mail.netbsd.org (Postfix, from userid 605) id 69A7A84D43; Sat, 21 Mar 2020 23:36:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E59EA84D28 for ; Sat, 21 Mar 2020 23:36:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id sp5M6h5D7_Mh for ; Sat, 21 Mar 2020 23:36:28 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 4DE2F84D25 for ; Sat, 21 Mar 2020 23:36:28 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 411D0FB27; Sat, 21 Mar 2020 23:36:28 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1584833788216120" MIME-Version: 1.0 Date: Sat, 21 Mar 2020 23:36:28 +0000 From: "Makoto Fujiwara" Subject: CVS commit: pkgsrc/devel/p5-Test-Exit To: pkgsrc-changes@NetBSD.org Reply-To: mef@netbsd.org X-Mailer: log_accum Message-Id: <20200321233628.411D0FB27@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1584833788216120 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: mef Date: Sat Mar 21 23:36:28 UTC 2020 Added Files: pkgsrc/devel/p5-Test-Exit: DESCR Makefile PLIST distinfo Log Message: devel/p5-Test-Exit: import p5-Test-Exit-0.11 Test::Exit provides some simple tools for testing code that might call exit(), providing you with the status code without exiting the test file. The only criterion tested is that the supplied code does or does not call exit(). If the code throws an exception, the exception will be propagated and you will have to catch it yourself. die()ing is not exiting for the purpose of these tests. Unlike previous versions of this module, the current version doesn't use exceptions to do its work, so even if you call exit() inside of an eval, everything should work. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-Test-Exit/DESCR \ pkgsrc/devel/p5-Test-Exit/Makefile pkgsrc/devel/p5-Test-Exit/PLIST \ pkgsrc/devel/p5-Test-Exit/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1584833788216120 Content-Disposition: inline Content-Length: 2669 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/devel/p5-Test-Exit/DESCR diff -u /dev/null pkgsrc/devel/p5-Test-Exit/DESCR:1.1 --- /dev/null Sat Mar 21 23:36:28 2020 +++ pkgsrc/devel/p5-Test-Exit/DESCR Sat Mar 21 23:36:28 2020 @@ -0,0 +1,12 @@ +Test::Exit provides some simple tools for testing code that might call +exit(), providing you with the status code without exiting the test +file. + +The only criterion tested is that the supplied code does or does not +call exit(). If the code throws an exception, the exception will be +propagated and you will have to catch it yourself. die()ing is not +exiting for the purpose of these tests. + +Unlike previous versions of this module, the current version doesn't +use exceptions to do its work, so even if you call exit() inside of an +eval, everything should work. Index: pkgsrc/devel/p5-Test-Exit/Makefile diff -u /dev/null pkgsrc/devel/p5-Test-Exit/Makefile:1.1 --- /dev/null Sat Mar 21 23:36:28 2020 +++ pkgsrc/devel/p5-Test-Exit/Makefile Sat Mar 21 23:36:28 2020 @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2020/03/21 23:36:28 mef Exp $ + +DISTNAME= Test-Exit-0.11 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/ +COMMENT= Test that some code calls exit() without terminating testing +LICENSE= ${PERL5_LICENSE} + +TEST_DEPENDS+= p5-Return-MultiLevel-[0-9]*:../../devel/p5-Return-MultiLevel + +PERL5_PACKLIST= auto/Test/Exit/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/devel/p5-Test-Exit/PLIST diff -u /dev/null pkgsrc/devel/p5-Test-Exit/PLIST:1.1 --- /dev/null Sat Mar 21 23:36:28 2020 +++ pkgsrc/devel/p5-Test-Exit/PLIST Sat Mar 21 23:36:28 2020 @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2020/03/21 23:36:28 mef Exp $ +@comment TODO: to fill this file with the file listing: +@comment TODO: 1. run "/usr/bin/make package" +@comment TODO: 2. run "/usr/bin/make print-PLIST" Index: pkgsrc/devel/p5-Test-Exit/distinfo diff -u /dev/null pkgsrc/devel/p5-Test-Exit/distinfo:1.1 --- /dev/null Sat Mar 21 23:36:28 2020 +++ pkgsrc/devel/p5-Test-Exit/distinfo Sat Mar 21 23:36:28 2020 @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/03/21 23:36:28 mef Exp $ + +SHA1 (Test-Exit-0.11.tar.gz) = b5896ca24bf621760036a4913f23ba3e362360a4 +RMD160 (Test-Exit-0.11.tar.gz) = 19483baa0c2854be9a207ae96ebd261fb09f69b9 +SHA512 (Test-Exit-0.11.tar.gz) = cd2ebb191f1d0c64017df9c4de50539985b96251222d88c644dafeb64b7373afdf28cd84d1c58caa78ee5704650f94efdd0e2971bbba962c1aeb799e812f26e4 +Size (Test-Exit-0.11.tar.gz) = 9778 bytes --_----------=_1584833788216120--