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/) {
12 $rx = load OS2::REXX "ydbautil" or die "1..0\n# load\n"; # from RXU17.ZIP
13 print "1..7\n", "ok 1\n";
15 $rx->prefix("Rx"); # implicit function prefix
19 tie @pib, OS2::REXX, "IB.P"; # bind array to REXX stem variable
21 tie %tib, OS2::REXX, "IB.T."; # bind associative array to REXX stem var
24 $rx->GetInfoBlocks("IB."); # call REXX function
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";