aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-01-11 06:32:55 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-01-11 06:32:55 +0000
commit7d6ad4284b308eb9dc1cc259aa4a699d164da6b6 (patch)
treef617939b033db17f9f996c9fb35cfd3067d1dd2a /t
parent6b0e055dc4efcc00230a6c303a0094779fb63cef (diff)
downloadperl-URPM-7d6ad4284b308eb9dc1cc259aa4a699d164da6b6.tar
perl-URPM-7d6ad4284b308eb9dc1cc259aa4a699d164da6b6.tar.gz
perl-URPM-7d6ad4284b308eb9dc1cc259aa4a699d164da6b6.tar.bz2
perl-URPM-7d6ad4284b308eb9dc1cc259aa4a699d164da6b6.tar.xz
perl-URPM-7d6ad4284b308eb9dc1cc259aa4a699d164da6b6.zip
add URPM::DB::close()
Diffstat (limited to 't')
-rw-r--r--t/resolve.t7
1 files changed, 1 insertions, 6 deletions
diff --git a/t/resolve.t b/t/resolve.t
index 15649e9..feaabb4 100644
--- a/t/resolve.t
+++ b/t/resolve.t
@@ -10,13 +10,8 @@ chdir 't' if -d 't';
my $urpm;
my $db;
-# There's currently not implemented any way for closing the rpmdb, so we cannot
-# delete it from perl itself, as the rpmdb won't close before perl exists,
-# which will give us errors when trying to close the rpmdb after it's been
-# deleted. Therefore we just fork a shell in the background which deletes it
-# after a 1 sec delay, which should give perl time to exit and close the
-# rpmdb before.
END {
+ $db = URPM::DB::close($db);
system('sh -c "sleep 1; rm -rf tmp" &');
}