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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « testsuite/tcg/nv/Tspi_NV_DefineSpace11.c ('k') | testsuite/tcg/pcrcomposite/Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * The Initial Developer of the Original Code is Intel Corporation. 2 * The Initial Developer of the Original Code is Intel Corporation.
3 * Portions created by Intel Corporation are Copyright (C) 2007 Intel Corporatio n. 3 * Portions created by Intel Corporation are Copyright (C) 2007 Intel Corporatio n.
4 * All Rights Reserved. 4 * All Rights Reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify 6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or 8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version. 9 * (at your option) any later version.
10 * 10 *
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 { 166 {
167 print_success(nameOfFunction, result); 167 print_success(nameOfFunction, result);
168 print_end_test(nameOfFunction); 168 print_end_test(nameOfFunction);
169 Tspi_Context_FreeMemory(hContext, NULL); 169 Tspi_Context_FreeMemory(hContext, NULL);
170 Tspi_Context_Close(hContext); 170 Tspi_Context_Close(hContext);
171 exit(0); 171 exit(0);
172 } 172 }
173 else{ 173 else{
174 print_error("Tspi_NV_DefineSpace", result); 174 print_error("Tspi_NV_DefineSpace", result);
175 print_end_test(nameOfFunction); 175 print_end_test(nameOfFunction);
176 if ( result == TSS_SUCCESS ) {
177 #ifdef CLEAR_TEST_INDEX
178 Tspi_Context_GetTpmObject(hContext, &hTPM);
179 Tspi_GetPolicyObject(hTPM, TSS_POLICY_USAGE, &hPolicy);
180 Tspi_Policy_SetSecret(hPolicy, TESTSUITE_OWNER_SECRET_MO DE,
181 TESTSUITE_OWNER_SECRET_L EN, TESTSUITE_OWNER_SECRET);
182 Tspi_NV_ReleaseSpace(hNVStore);
183 Tspi_Context_FreeMemory(hContext, NULL);
184 Tspi_Context_Close(hContext);
185 #endif
186 exit(-1);
187 }
176 Tspi_Context_FreeMemory(hContext, NULL); 188 Tspi_Context_FreeMemory(hContext, NULL);
177 Tspi_Context_Close(hContext); 189 Tspi_Context_Close(hContext);
178 if ( result == TSS_SUCCESS )
179 exit(-1);
180 exit(result); 190 exit(result);
181 } 191 }
182 192
183 #else 193 #else
184 if (result== TSS_SUCCESS) 194 if (result== TSS_SUCCESS)
185 { 195 {
186 print_success(nameOfFunction, result); 196 print_success(nameOfFunction, result);
187 print_end_test(nameOfFunction); 197 print_end_test(nameOfFunction);
188 198
189 #ifdef CLEAR_TEST_INDEX 199 #ifdef CLEAR_TEST_INDEX
(...skipping 10 matching lines...) Expand all
200 } 210 }
201 else{ 211 else{
202 print_error("Tspi_NV_DefineSpace", result); 212 print_error("Tspi_NV_DefineSpace", result);
203 print_end_test(nameOfFunction); 213 print_end_test(nameOfFunction);
204 Tspi_Context_FreeMemory(hContext, NULL); 214 Tspi_Context_FreeMemory(hContext, NULL);
205 Tspi_Context_Close(hContext); 215 Tspi_Context_Close(hContext);
206 exit(result); 216 exit(result);
207 } 217 }
208 #endif 218 #endif
209 } 219 }
OLDNEW
« 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