summaryrefslogtreecommitdiff
path: root/libvxi11client/perlbits/VXI11-Client.t
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-23 21:46:57 +0900
committerdaniel <danieruru@gmail.com>2013-01-23 21:46:57 +0900
commit5d66712261026f3f2da0958d98d60fb2142feedd (patch)
tree9ed2b7c10481fa73206c8bac9b910a8cbd1c7597 /libvxi11client/perlbits/VXI11-Client.t
parent2e50d8284b0d3e745cb7c24a1a8fa5a60bd1ebcf (diff)
Make readstb make sense :)
Diffstat (limited to 'libvxi11client/perlbits/VXI11-Client.t')
-rw-r--r--libvxi11client/perlbits/VXI11-Client.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvxi11client/perlbits/VXI11-Client.t b/libvxi11client/perlbits/VXI11-Client.t
index 3334d3c..7054d39 100644
--- a/libvxi11client/perlbits/VXI11-Client.t
+++ b/libvxi11client/perlbits/VXI11-Client.t
@@ -27,7 +27,10 @@ my ($bytes, $buff, $reason) = $instr->vxi_read(256, 0, 0, 0);
print "got " . $bytes . ";" . $buff . "\n";
ok($bytes > 0, "Read");
-ok($instr->vxi_readstatusbyte(0) >= 0 , "Read status byte");
+
+my ($error, $statusbyte) = $instr->vxi_readstatusbyte(0);
+ok($error == 0 , "Read status byte");
+
is($instr->vxi_create_intr_chan(), 1, "Create intr channel");
is($instr->vxi_enable_srq(1, "myhandle"), 1, "Enable interrupts");
is(&VXI11::Client::vxi_wait_for_interrupt, "myhandle", "Wait for interrupt");