Commit | Line | Data |
760ac839 |
1 | BEGIN { |
2 | chdir 't' if -d 't/lib'; |
3 | @INC = '../lib' if -d 'lib'; |
4 | require Config; import Config; |
5 | if (-d 'lib' and $Config{'extensions'} !~ /\bOS2::REXX\b/) { |
6 | print "1..0\n"; |
7 | exit 0; |
8 | } |
9 | } |
10 | |
11 | use OS2::REXX; |
12 | $rx = load OS2::REXX "ydbautil" or die "1..0\n# load\n"; # from RXU17.ZIP |
13 | print "1..7\n", "ok 1\n"; |
14 | |
15 | $rx->prefix("Rx"); # implicit function prefix |
16 | print "ok 2\n"; |
17 | |
18 | REXX_call { |
19 | tie @pib, OS2::REXX, "IB.P"; # bind array to REXX stem variable |
20 | print "ok 3\n"; |
21 | tie %tib, OS2::REXX, "IB.T."; # bind associative array to REXX stem var |
22 | print "ok 4\n"; |
23 | |
24 | $rx->GetInfoBlocks("IB."); # call REXX function |
25 | print "ok 5\n"; |
26 | defined $pib[6] ? print "ok 6\n" : print "not ok 6\n# pib\n"; |
27 | defined $tib{7} && $tib{7} =~ /^\d+$/ ? print "ok 7\n" |
28 | : print "not ok 7\n# tib\n"; |
29 | print "# Process status is ", unpack("I", $pib[6]), |
30 | ", thread ordinal is $tib{7}\n"; |
31 | }; |