ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Proc-FastSpawn/t/01_basic.t
Revision: 1.1
Committed: Fri Mar 29 22:15:52 2013 UTC (13 years, 5 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: rel-1_0, rel-0_1, rel-0_2
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 BEGIN { $| = 1; print "1..5\n"; }
2    
3     use Proc::FastSpawn;
4    
5     print "ok 1\n";
6     my $pid = spawn $^X, ["perl", "-e", "exit 5"];
7     print $pid ? "" : "not ", "ok 2\n";
8     print +($pid == waitpid $pid, 0) ? "" : "not ", "ok 3\n";
9     print $? == 0x0500 ? "" : "not ", "ok 4\n";
10     print "ok 5\n";