[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#568147: ITP: libtest-exit-perl -- Tests whether code exits without terminating testing



Package: wnpp
Owner: Maximilian Gass <mxey@cloudconnected.org>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org,debian-perl@lists.debian.org

* Package name    : libtest-exit-perl
  Version         : 0.03
  Upstream Author : Andrew Rodland <andrew@hbslabs.com>
* URL             : http://search.cpan.org/dist/Test-Exit/
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : Tests whether code exits without terminating testing

Test::Exit provides some simple tools for testing that code does or does not
call exit(), while stopping code that does exit at the point of the exit().
Currently it does so by means of exceptions, so it will not function properly
if the code under test calls exit() inside of an eval block or string.

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 call it yourself. die()ing is not exiting for the purpose of
these tests.



Reply to: