fixup patches for VMS
[p5sagit/p5-mst-13.2.git] / t / lib / filespec.t
CommitLineData
270d1e39 1#!/usr/bin/perl
2
3print "1..4\n";
4
5BEGIN {
6 $^O = '';
7}
8
9use File::Spec;
10
11
12if (File::Spec->catfile('a','b','c') eq 'a/b/c') {
13 print "ok 1\n";
14} else {
15 print "not ok 1\n";
16}
17
18use File::Spec::OS2;
19
20if (File::Spec::OS2->catfile('a','b','c') eq 'a/b/c') {
21 print "ok 2\n";
22} else {
23 print "not ok 2\n";
24}
25
26use File::Spec::Win32;
27
28if (File::Spec::Win32->catfile('a','b','c') eq 'a\b\c') {
29 print "ok 3\n";
30} else {
31 print "not ok 3\n";
32}
33
34use File::Spec::Mac;
35
36if (File::Spec::Mac->catfile('a','b','c') eq 'a:b:c') {
37 print "ok 4\n";
38} else {
39 print "not ok 4\n";
40}
41