1 #!perl -- -*- mode: cperl -*-
5 sub _f ($) {File::Spec->catfile(split /\//, shift);}
7 my $Id = q$Id: bap.t 26 2003-02-16 19:01:03Z k $;
16 my $tests_per_loop = 3;
17 my $plan = scalar @s * $tests_per_loop;
20 my $devnull = File::Spec->devnull;
22 my $script = _f($s[$s-1]);
23 open my $fh, "-|", qq{"$^X" "-Ilib" "-cw" "$script" 2>&1} or die "could not fork: $!";
29 ok 1==$ret, "$script:-c:$ret";
30 open $fh, "-|", qq{"$^X" "-Ilib" "$script" "-help" 2>&1} or die "could not fork: $!";
33 $seen_usage++ if /Usage:/;
36 ok 1==$ret, "$script:-help:ret=$ret";
37 ok 0<$seen_usage, "$script:-help:su=$seen_usage";
44 # cperl-indent-level: 2