3 # On platforms that don't support all of the filetest operators the code
4 # that faked the results of missing tests used to leave the test's
5 # argument on the stack.
13 my @ops = split //, 'rwxoRWXOezsfdlpSbctugkTMBAC';
15 plan( tests => @ops * 3 );
18 ok( 1 == @{ [ eval "-$op 'TEST'" ] }, "-$op returns single value" );
22 for my $m ("a", "b") {
24 $t = eval "-$op _" ? 0 : "foo";
27 is($m, "b", "-$op did not remove too many values from the stack");
33 for my $m ("c", "d") {
35 $t = eval "-$op -e \$^X" ? 0 : "bar";
39 if ($op eq 'T' or $op eq 't' or $op eq 'B') {
40 $TODO = "[perl #77388] stacked file test does not work with -$op";
42 is($m, "d", "-$op -e \$^X did not remove too many values from the stack");