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

Side by Side Diff: testsuite/tcg/nv/Tspi_NV_DefineSpace03.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_DefineSpace02.c ('k') | testsuite/tcg/nv/Tspi_NV_DefineSpace04.c » ('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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 exit(result); 258 exit(result);
259 } 259 }
260 260
261 #else 261 #else
262 if (result== TSS_SUCCESS) 262 if (result== TSS_SUCCESS)
263 { 263 {
264 print_success(nameOfFunction, result); 264 print_success(nameOfFunction, result);
265 print_end_test(nameOfFunction); 265 print_end_test(nameOfFunction);
266 266
267 #ifdef CLEAR_TEST_INDEX 267 #ifdef CLEAR_TEST_INDEX
268 Tspi_Context_GetTpmObject(hContext, &hTPM);
269 Tspi_GetPolicyObject(hTPM, TSS_POLICY_USAGE, &hPolicy);
270 Tspi_Policy_SetSecret( hPolicy, TESTSUITE_OWNER_SECRET_MODE,
271 TESTSUITE_OWNER_SECRET_LEN, TESTSUITE_OW NER_SECRET); 268 TESTSUITE_OWNER_SECRET_LEN, TESTSUITE_OW NER_SECRET);
272 Tspi_NV_ReleaseSpace(hNVStore); 269 Tspi_NV_ReleaseSpace(hNVStore);
273 #endif 270 #endif
274 271
275 Tspi_Context_FreeMemory(hContext, NULL); 272 Tspi_Context_FreeMemory(hContext, NULL);
276 Tspi_Context_Close(hContext); 273 Tspi_Context_Close(hContext);
277 exit(0); 274 exit(0);
278 } 275 }
279 else{ 276 else{
280 print_error("Tspi_NV_DefineSpace", result); 277 print_error("Tspi_NV_DefineSpace", result);
281 print_end_test(nameOfFunction); 278 print_end_test(nameOfFunction);
282 Tspi_Context_FreeMemory(hContext, NULL); 279 Tspi_Context_FreeMemory(hContext, NULL);
283 Tspi_Context_Close(hContext); 280 Tspi_Context_Close(hContext);
284 exit(result); 281 exit(result);
285 } 282 }
286 #endif 283 #endif
287 } 284 }
OLDNEW
« no previous file with comments | « testsuite/tcg/nv/Tspi_NV_DefineSpace02.c ('k') | testsuite/tcg/nv/Tspi_NV_DefineSpace04.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698