This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Test for +x bits for all the files in exec-bit.txt
[perl5.git] / t / op / filetest_stack_ok.t
CommitLineData
c410dd6a
AA
1#!./perl
2
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.
6
7BEGIN {
8 chdir 't' if -d 't';
9 @INC = '../lib';
10 require './test.pl';
11}
12
13my @ops = split //, 'rwxoRWXOezsfdlpSbctugkTMBAC';
14
15plan( tests => @ops * 1 );
16
17for my $op (@ops) {
18 ok( 1 == @{ [ eval "-$op 'TEST'" ] }, "-$op returns single value" );
19}