diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-01-11 06:32:55 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-01-11 06:32:55 +0000 |
commit | 7d6ad4284b308eb9dc1cc259aa4a699d164da6b6 (patch) | |
tree | f617939b033db17f9f996c9fb35cfd3067d1dd2a /t | |
parent | 6b0e055dc4efcc00230a6c303a0094779fb63cef (diff) | |
download | perl-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.t | 7 |
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" &'); } |