This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix handling of registered warning categories
[perl5.git] / t / op / setpgrpstack.t
1 #!./perl -w
2
3 BEGIN {
4     chdir 't' if -d 't';
5     require './test.pl';
6     set_up_inc('../lib');
7     skip_all_without_config('d_setpgrp');
8 }
9
10 plan tests => 3;
11
12 ok(!eval { package A;sub foo { die("got here") }; package main; A->foo(setpgrp())});
13 ok($@ =~ /got here/, "setpgrp() should extend the stack before modifying it");
14
15 is join("_", setpgrp(0)), 1, 'setpgrp with one argument';