Changeset 14599 for t/operators/filetest.t
- Timestamp:
- 11/03/06 05:30:51 (2 years ago)
- svk:copy_cache_prev:
- 41990
- Files:
-
- 1 modified
-
t/operators/filetest.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/operators/filetest.t
r14516 r14599 9 9 =cut 10 10 11 plan 41;11 plan 50; 12 12 13 13 #if $*OS eq any <MSWin32 mingw msys cygwin> { … … 118 118 my $fh = open("test_file", :w); 119 119 close $fh; 120 ok (-M "test_file") > 0, "-M works"; 121 ok (-C "test_file") > 0, "-C works"; 122 ok (-A "test_file") > 0, "-A works"; 120 sleep 1; # just to make sure 121 ok (-M "test_file") < 0, "-M works on new file"; 122 ok (-C "test_file") < 0, "-C works on new file"; 123 ok (-A "test_file") < 0, "-A works on new file"; 123 124 unlink "test_file"; 124 125 126 if (! -f "README") { 127 skip 3, "no file README"; 128 } else { 129 ok (-M "README") > 0, "-M works on existing file"; 130 ok (-C "README") > 0, "-C works on existing file"; 131 ok (-A "README") > 0, "-A works on existing file"; 132 } 133 134 ok not -M "xyzzy", "-M returns undef when no file"; 135 ok not -C "xyzzy", "-C returns undef when no file"; 136 ok not -A "xyzzy", "-A returns undef when no file";
