summaryrefslogtreecommitdiff
path: root/security/nss/gtests/ssl_gtest/ssl_gtest.cc
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-06 11:46:26 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-06 11:46:26 +0100
commit0d5461ff40eef2b711a720674f6b48f206df73e2 (patch)
treec6033924a0de9be1ab140596e305898c651bf57e /security/nss/gtests/ssl_gtest/ssl_gtest.cc
parentef71c3358c6ac8463740d07ba82a9f11f869da8a (diff)
downloaduxp-0d5461ff40eef2b711a720674f6b48f206df73e2.tar.gz
Update NSS to 3.32.1-RTM
Diffstat (limited to 'security/nss/gtests/ssl_gtest/ssl_gtest.cc')
-rw-r--r--security/nss/gtests/ssl_gtest/ssl_gtest.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/security/nss/gtests/ssl_gtest/ssl_gtest.cc b/security/nss/gtests/ssl_gtest/ssl_gtest.cc
index 2d08dd865d..cd10076b8d 100644
--- a/security/nss/gtests/ssl_gtest/ssl_gtest.cc
+++ b/security/nss/gtests/ssl_gtest/ssl_gtest.cc
@@ -31,12 +31,18 @@ int main(int argc, char** argv) {
}
}
- NSS_Initialize(g_working_dir_path.c_str(), "", "", SECMOD_DB,
- NSS_INIT_READONLY);
- NSS_SetDomesticPolicy();
+ if (NSS_Initialize(g_working_dir_path.c_str(), "", "", SECMOD_DB,
+ NSS_INIT_READONLY) != SECSuccess) {
+ return 1;
+ }
+ if (NSS_SetDomesticPolicy() != SECSuccess) {
+ return 1;
+ }
int rv = RUN_ALL_TESTS();
- NSS_Shutdown();
+ if (NSS_Shutdown() != SECSuccess) {
+ return 1;
+ }
nss_test::Poller::Shutdown();