Bad \[...] prototype checking
[p5sagit/p5-mst-13.2.git] / os2 / os2_base.t
CommitLineData
35bc1fdc 1print "1.." . lasttest() . "\n";
2
3$cwd = Cwd::sys_cwd();
4print "ok 1\n";
5print "not " unless -d $cwd;
6print "ok 2\n";
7
8$lpb = Cwd::extLibpath;
9print "ok 3\n";
10$lpb .= ';' unless $lpb and $lpb =~ /;$/;
11
12$lpe = Cwd::extLibpath(1);
13print "ok 4\n";
14$lpe .= ';' unless $lpe and $lpe =~ /;$/;
15
16Cwd::extLibpath_set("$lpb$cwd") or print "not ";
17print "ok 5\n";
18
19$lpb = Cwd::extLibpath;
20print "ok 6\n";
21$lpb =~ s#\\#/#g;
22($s_cwd = $cwd) =~ s#\\#/#g;
23
24print "not " unless $lpb =~ /\Q$s_cwd/;
25print "ok 7\n";
26
27Cwd::extLibpath_set("$lpe$cwd", 1) or print "not ";
28print "ok 8\n";
29
30$lpe = Cwd::extLibpath(1);
31print "ok 9\n";
32$lpe =~ s#\\#/#g;
33
34print "not " unless $lpe =~ /\Q$s_cwd/;
35print "ok 10\n";
36
37unshift @INC, 'lib';
38require OS2::Process;
39@l = OS2::Process::process_entry();
40print "not " unless @l == 11;
41print "ok 11\n";
42
43# 1: FS 2: Window-VIO
44print "not " unless $l[9] == 1 or $l[9] == 2;
45print "ok 12\n";
46
47print "# $_\n" for @l;
48
49sub lasttest {12}