Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Unified Diff: testsuite/tcg/nv/Tspi_NV_DefineSpace12.c

Issue 3581012: Upgrade from trousers 0.3.3 to 0.3.6 and from testsuite 0.2 to 0.3. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/trousers.git
Patch Set: git cl push Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testsuite/tcg/nv/Tspi_NV_DefineSpace11.c ('k') | testsuite/tcg/pcrcomposite/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testsuite/tcg/nv/Tspi_NV_DefineSpace12.c
diff --git a/testsuite/tcg/nv/Tspi_NV_DefineSpace12.c b/testsuite/tcg/nv/Tspi_NV_DefineSpace12.c
index f675ade3d6c9876f6fea9181351e844afc0f658f..fcfee95d53f25d9f09a24bf7a18a2117f4a5cac6 100644
--- a/testsuite/tcg/nv/Tspi_NV_DefineSpace12.c
+++ b/testsuite/tcg/nv/Tspi_NV_DefineSpace12.c
@@ -173,10 +173,20 @@ main_v1_2(char version)
else{
print_error("Tspi_NV_DefineSpace", result);
print_end_test(nameOfFunction);
+ if ( result == TSS_SUCCESS ) {
+#ifdef CLEAR_TEST_INDEX
+ Tspi_Context_GetTpmObject(hContext, &hTPM);
+ Tspi_GetPolicyObject(hTPM, TSS_POLICY_USAGE, &hPolicy);
+ Tspi_Policy_SetSecret(hPolicy, TESTSUITE_OWNER_SECRET_MODE,
+ TESTSUITE_OWNER_SECRET_LEN, TESTSUITE_OWNER_SECRET);
+ Tspi_NV_ReleaseSpace(hNVStore);
+ Tspi_Context_FreeMemory(hContext, NULL);
+ Tspi_Context_Close(hContext);
+#endif
+ exit(-1);
+ }
Tspi_Context_FreeMemory(hContext, NULL);
Tspi_Context_Close(hContext);
- if ( result == TSS_SUCCESS )
- exit(-1);
exit(result);
}
« no previous file with comments | « testsuite/tcg/nv/Tspi_NV_DefineSpace11.c ('k') | testsuite/tcg/pcrcomposite/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698