summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/t/lib/filespec.t
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-04-29 22:36:41 +0000
committermillert <millert@openbsd.org>1999-04-29 22:36:41 +0000
commit0a5f61bb653fdff7c29c2275df78c7f019a04c0c (patch)
tree0b6e610f8913b7c1e30fd7bf5bfc62edcbbd93e5 /gnu/usr.bin/perl/t/lib/filespec.t
parentY2K fix: allow 'shutdown yymmddhhmm' to work in the next century. (diff)
downloadwireguard-openbsd-0a5f61bb653fdff7c29c2275df78c7f019a04c0c.tar.xz
wireguard-openbsd-0a5f61bb653fdff7c29c2275df78c7f019a04c0c.zip
perl5.005_03
Diffstat (limited to 'gnu/usr.bin/perl/t/lib/filespec.t')
-rw-r--r--gnu/usr.bin/perl/t/lib/filespec.t43
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/usr.bin/perl/t/lib/filespec.t b/gnu/usr.bin/perl/t/lib/filespec.t
new file mode 100644
index 00000000000..ca22d3e12ba
--- /dev/null
+++ b/gnu/usr.bin/perl/t/lib/filespec.t
@@ -0,0 +1,43 @@
+#!./perl
+
+BEGIN {
+ $^O = '';
+ chdir 't' if -d 't';
+ @INC = '../lib';
+}
+
+print "1..4\n";
+
+use File::Spec;
+
+
+if (File::Spec->catfile('a','b','c') eq 'a/b/c') {
+ print "ok 1\n";
+} else {
+ print "not ok 1\n";
+}
+
+use File::Spec::OS2;
+
+if (File::Spec::OS2->catfile('a','b','c') eq 'a/b/c') {
+ print "ok 2\n";
+} else {
+ print "not ok 2\n";
+}
+
+use File::Spec::Win32;
+
+if (File::Spec::Win32->catfile('a','b','c') eq 'a\b\c') {
+ print "ok 3\n";
+} else {
+ print "not ok 3\n";
+}
+
+use File::Spec::Mac;
+
+if (File::Spec::Mac->catfile('a','b','c') eq 'a:b:c') {
+ print "ok 4\n";
+} else {
+ print "not ok 4\n";
+}
+