220223 TokenException caused by left over cert8.db

This commit is contained in:
glen.beasley%sun.com 2004-10-22 00:00:51 +00:00
Родитель 890ae1e651
Коммит d20951adac
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -139,9 +139,15 @@ if( ! -d $testdir ) {
{
chdir "testdir" or die;
my @dbfiles =
("./cert7.db", "./key3.db", "./secmod.db", "./secmodule.db");
("./cert8.db", "./key3.db", "./secmod.db");
unlink @dbfiles;
(grep{ -f } @dbfiles) and die "Unable to delete old database files";
# if dbdir exists delete it
my $dbdir = "./cert8.dir";
if (-d $dbdir ) {
unlink(< $dbdir/* >); # delete all files in cert8.dir
rmdir($dbdir) or die "Unable to delete cert8.dir";
}
chdir ".." or die;
my $result = system("cp $nss_lib_dir/*nssckbi* testdir"); $result >>= 8;
$result and die "Failed to copy builtins library";