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 $;
13 my $tests_per_loop = 3;
14 my $plan = scalar @s * $tests_per_loop;
17 my $devnull = File::Spec->devnull;
19 my $script = _f($s[$s-1]);
20 open my $fh, "-|", qq{"$^X" "-Ilib" "-cw" "$script" 2>&1} or die "could not fork: $!";
26 ok 1==$ret, "$script:-c:$ret";
27 open $fh, "-|", qq{"$^X" "-Ilib" "$script" "-help" 2>&1} or die "could not fork: $!";
30 $seen_usage++ if /Usage:/;
33 ok 1==$ret, "$script:-help:ret=$ret";
34 ok 0<$seen_usage, "$script:-help:su=$seen_usage";
41 # cperl-indent-level: 2