diff options
author | nanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c> | 2006-06-11 02:41:50 +0000 |
---|---|---|
committer | nanardon <nanardon@971eb68f-4bfb-0310-8326-d2484c010a4c> | 2006-06-11 02:41:50 +0000 |
commit | 88e3fad5e5e61f2faa6280136f2d4cacf3f68f93 (patch) | |
tree | cbc95653e2626fdafa632ebf14a2ba517e719ff0 /RPM4/t | |
parent | 05ad8778579b547e575fbf0f28c3dc71061367d7 (diff) | |
download | perl-RPM4-88e3fad5e5e61f2faa6280136f2d4cacf3f68f93.tar perl-RPM4-88e3fad5e5e61f2faa6280136f2d4cacf3f68f93.tar.gz perl-RPM4-88e3fad5e5e61f2faa6280136f2d4cacf3f68f93.tar.bz2 perl-RPM4-88e3fad5e5e61f2faa6280136f2d4cacf3f68f93.tar.xz perl-RPM4-88e3fad5e5e61f2faa6280136f2d4cacf3f68f93.zip |
- fix initdb test, workaround rpm suckage
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@104 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4/t')
-rw-r--r-- | RPM4/t/05transaction.t | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/RPM4/t/05transaction.t b/RPM4/t/05transaction.t index 8ee1f44..1454da1 100644 --- a/RPM4/t/05transaction.t +++ b/RPM4/t/05transaction.t @@ -13,13 +13,12 @@ RPM4::add_macro("_dbpath /dev/null"); ok(RPM4::rpmdbverify() != 0, "Verify non existing database (get error)"); my $tempdir = tempdir(); -rmtree($tempdir) if $tempdir; my $testdir = "$tempdir/testdb"; -mkdir $testdir; +mkdir $testdir || die $!; RPM4::add_macro("_dbpath $testdir"); -ok(RPM4::rpmdbinit() == 0, "initdb works"); +ok(RPM4::rpmdbinit() == 0 || -f "$testdir/Packages", "initdb works"); ok(RPM4::rpmdbrebuild() == 0, "rebuild database"); ok(RPM4::rpmdbverify() == 0, "Verify empty"); |