tests: Adding additional no-throw check in sec-public-info-sqlite3 test
Change-Id: Ia6e350aca7351e2c35096785bfbe6498f161f758
diff --git a/tests/test-sec-public-info-sqlite3.cpp b/tests/test-sec-public-info-sqlite3.cpp
index c1c5d57..70dd0f6 100644
--- a/tests/test-sec-public-info-sqlite3.cpp
+++ b/tests/test-sec-public-info-sqlite3.cpp
@@ -23,7 +23,9 @@
KeyChainImpl<SecPublicInfoSqlite3, SecTpmFile> keyChain;
Name identity(string("/TestSecPublicInfoSqlite3/Delete/") + boost::lexical_cast<string>(time::now()));
- Name certName1 = keyChain.createIdentity(identity);
+ Name certName1;
+ BOOST_REQUIRE_NO_THROW(certName1 = keyChain.createIdentity(identity));
+
Name keyName1 = IdentityCertificate::certificateNameToPublicKeyName(certName1);
Name keyName2;
BOOST_CHECK_NO_THROW(keyName2 = keyChain.generateRSAKeyPairAsDefault(identity));