зеркало из https://github.com/mozilla/pjs.git
220223 TokenException caused by left over cert8.db
This commit is contained in:
Родитель
890ae1e651
Коммит
d20951adac
|
@ -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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче