… | |
… | |
25 | print !@res != !$ok ? "not " : "", "ok ", $t++, " # $f (@_) = (@res)\n"; |
25 | print !@res != !$ok ? "not " : "", "ok ", $t++, " # $f (@_) = (@res)\n"; |
26 | |
26 | |
27 | wantarray ? @res : $res[0] |
27 | wantarray ? @res : $res[0] |
28 | } |
28 | } |
29 | |
29 | |
30 | our $TMP = "/tmp"; |
30 | use File::Spec; |
|
|
31 | |
|
|
32 | our $TMP = File::Spec->tmpdir; |
31 | our $DIR = "$TMP/ae_io_testdir_$$~"; |
33 | our $DIR = "$TMP/ae_io_testdir_$$~"; |
32 | |
34 | |
33 | t 1, mkdir => $DIR, 0777 |
35 | t 1, mkdir => $DIR, 0777 |
34 | or do { print "Bail out! Cannot mkdir $DIR, skipping test.\n"; exit 0 }; |
36 | or do { print "Bail out! Cannot mkdir $DIR, skipping test.\n"; exit 0 }; |
35 | t 0, mkdir => $DIR, 0777; |
37 | t 0, mkdir => $DIR, 0777; |