summaryrefslogtreecommitdiff
path: root/test/get-dropboxes
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-09-30 23:05:11 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2015-09-30 23:05:11 (GMT)
commit6f1943313a0e503189dd9685483a9ecd1bd7cc6e (patch)
tree7461bd743125feb61a7f977a06e7698bb184d333 /test/get-dropboxes
parent88ba274e7841fedffe9ef98b0933c0610ac6997c (diff)
introduced rhrd context
Diffstat (limited to 'test/get-dropboxes')
-rwxr-xr-xtest/get-dropboxes10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/get-dropboxes b/test/get-dropboxes
index b8a5266..89a4935 100755
--- a/test/get-dropboxes
+++ b/test/get-dropboxes
@@ -33,15 +33,15 @@ my $type = $ARGV[2];
my @dropboxes = ();
-my ($dbh, $status, $errorstring) = RHRD::rddb::opendb();
-if(defined $dbh) {
- @dropboxes = RHRD::rddb::get_dropboxes($dbh, $username, $groupname, $type);
+my ($ctx, $status, $errorstring) = RHRD::rddb::init();
+if(defined $ctx) {
+ @dropboxes = RHRD::rddb::get_dropboxes($ctx, $username, $groupname, $type);
if(!defined $dropboxes[0] && defined $dropboxes[1]) {
print STDERR "$dropboxes[1]: $dropboxes[2]";
- RHRD::rddb::closedb($dbh);
+ RHRD::rddb::destroy($ctx);
exit 1;
}
- RHRD::rddb::closedb($dbh);
+ RHRD::rddb::destroy($ctx);
} else {
print STDERR "$errorstring\n";
exit 1;