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/) {
16 $ydba = load OS2::REXX "ydbautil"
17 or print "1..0 # skipped: cannot find YDBAUTIL.DLL\n" and exit;
18 print "1..5\n", "ok 1\n";
23 @pid = $ydba->RxProcId();
24 @pid == 1 ? print "ok 2\n" : print "not ok 2\n";
25 @res = split " ", $pid[0];
26 print "ok 3\n" if $res[0] == $$;
27 @pid = $ydba->RxProcId();
28 @res = split " ", $pid[0];
29 print "ok 4\n" if $res[0] == $$;
32 eval { $ydba->nixda(); };
33 print "ok 5\n" if $@ =~ /^Can't find entry 'nixda\'/;