projects
/
ZOOM-Perl-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1fb35dd
)
Send dropdb packets as Zebra now works.
author
mike
<mike>
Wed, 12 Apr 2006 12:29:49 +0000
(12:29 +0000)
committer
mike
<mike>
Wed, 12 Apr 2006 12:29:49 +0000
(12:29 +0000)
t/26-packages.t
patch
|
blob
|
history
diff --git
a/t/26-packages.t
b/t/26-packages.t
index
ce3478c
..
a0670e6
100644
(file)
--- a/
t/26-packages.t
+++ b/
t/26-packages.t
@@
-1,4
+1,4
@@
-# $Id: 26-packages.t,v 1.6 2005-12-14 09:30:48 mike Exp $
+# $Id: 26-packages.t,v 1.7 2006-04-12 12:29:49 mike Exp $
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl 26-packages.t'
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl 26-packages.t'
@@
-57,8
+57,7
@@
count_hits($conn, "the", 0, 2);
dropdb($conn, $dbname, 0);
# A second dropping should fail, as the database is no longer there.
dropdb($conn, $dbname, 0);
# A second dropping should fail, as the database is no longer there.
-### But at present, it's "always successful" (though not really)
-dropdb($conn, $dbname, 0);
+dropdb($conn, $dbname, 10004);
sub makeconn {
sub makeconn {
@@
-119,8
+118,7
@@
sub dropdb {
my $p = $conn->package();
# No need to keep ok()ing this, or checking the option-setting
$p->option(databaseName => $dbname);
my $p = $conn->package();
# No need to keep ok()ing this, or checking the option-setting
$p->option(databaseName => $dbname);
- ### Don't send the package at the moment -- it corrupts Zebra
- #$p->send("drop");
+ eval { $p->send("drop") };
my($errcode, $errmsg, $addinfo) = maybe_error($@);
ok($errcode == $expected_error,
"database drop '$dbname'" . ($errcode ? " refused $errcode" : ""));
my($errcode, $errmsg, $addinfo) = maybe_error($@);
ok($errcode == $expected_error,
"database drop '$dbname'" . ($errcode ? " refused $errcode" : ""));