source:
vendor/perl/5.8.8/lib/FileCache/t/05override.t@
3181
| Last change on this file since 3181 was 3181, checked in by , 19 years ago | |
|---|---|
| File size: 400 bytes | |
| Line | |
|---|---|
| 1 | #!./perl |
| 2 | BEGIN { |
| 3 | use FileCache; |
| 4 | chdir 't' if -d 't'; |
| 5 | |
| 6 | #For tests within the perl distribution |
| 7 | @INC = '../lib' if -d '../lib'; |
| 8 | END; |
| 9 | } |
| 10 | END{ |
| 11 | unlink("Foo_Bar"); |
| 12 | } |
| 13 | print "1..1\n"; |
| 14 | |
| 15 | {# Test 5: that close is overridden properly within the caller |
| 16 | cacheout local $_ = "Foo_Bar"; |
| 17 | print $_ "Hello World\n"; |
| 18 | close($_); |
| 19 | print 'not ' if fileno($_); |
| 20 | print "ok 1\n"; |
| 21 | } |
Note:
See TracBrowser
for help on using the repository browser.
