aboutsummaryrefslogtreecommitdiff
path: root/t/00use.t
blob: aefe48e795bad6d6d906989340de6afa59fc2e22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Before 'make install' is performed this script should be runnable with
# 'make test'. After 'make install' it should work as 'perl POSIX-Run-Capture.t'

#########################

use strict;
use warnings;

use Test::More  tests => 3;
BEGIN { use POSIX::Run::Capture };

ok(eval { new POSIX::Run::Capture(['cat', 'file']) });
ok(eval { new POSIX::Run::Capture(argv => ['cat', 'file'], timeout => 3) });
ok(!eval { new POSIX::Run::Capture(1, 2) });
       
#########################

# Insert your test code below, the Test::More module is use()ed here so read
# its man page ( perldoc Test::More ) for help writing this test script.

Return to:

Send suggestions and report system problems to the System administrator.