зеркало из https://github.com/mozilla/gecko-dev.git
Bracket shuffling to fix a warning in Perl 5.0.x.
This commit is contained in:
Родитель
2d3f1dc3de
Коммит
7c4f16563f
|
@ -276,7 +276,7 @@ sub setupConfigureDatabase {
|
||||||
$self->handle(DBI->connect($self->connectString($helper->setupDatabaseName), $adminUsername, $adminPassword,
|
$self->handle(DBI->connect($self->connectString($helper->setupDatabaseName), $adminUsername, $adminPassword,
|
||||||
{RaiseError => 0, PrintError => 1, AutoCommit => 1, Taint => 1}));
|
{RaiseError => 0, PrintError => 1, AutoCommit => 1, Taint => 1}));
|
||||||
};
|
};
|
||||||
$self->assert(not($@), 1, "Could not connect to database: $@");
|
$self->assert((not $@), 1, "Could not connect to database: $@");
|
||||||
$self->assert($self->handle, 1, 'Failed to connect to database: '.(defined($DBI::errstr) ? $DBI::errstr : 'unknown error'));
|
$self->assert($self->handle, 1, 'Failed to connect to database: '.(defined($DBI::errstr) ? $DBI::errstr : 'unknown error'));
|
||||||
|
|
||||||
# get the helper to do its stuff
|
# get the helper to do its stuff
|
||||||
|
|
Загрузка…
Ссылка в новой задаче