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