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

Unified Diff: tests/tpm_lite/earlyextend.c

Issue 3389004: Rehaul of firmware TPM tests (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: remove leaked change Created 10 years, 3 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 | « tests/tpm_lite/clear.c ('k') | tests/tpm_lite/earlynvram.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/tpm_lite/earlyextend.c
diff --git a/tests/tpm_lite/earlyextend.c b/tests/tpm_lite/earlyextend.c
index b46f17fc01c41cd7c008f6319f36d6aae64cae0e..837960c1e8b0996c19e49b62ca53023dab603841 100644
--- a/tests/tpm_lite/earlyextend.c
+++ b/tests/tpm_lite/earlyextend.c
@@ -11,24 +11,16 @@
#include <stdlib.h>
#include "tlcl.h"
-
-#define INDEX0 0xcafe
+#include "tlcl_tests.h"
int main(int argc, char** argv) {
uint8_t value_in[20];
uint8_t value_out[20];
- uint32_t result;
TlclLibInit();
- TlclStartup();
- TlclContinueSelfTest();
-
- do {
- result = TlclExtend(1, value_in, value_out);
- printf("result of Extend = %d\n", result);
- } while (result == TPM_E_DOING_SELFTEST ||
- result == TPM_E_NEEDS_SELFTEST);
-
- printf("Test completed successfully\n");
+ TPM_CHECK(TlclStartup());
+ TPM_CHECK(TlclContinueSelfTest());
+ TPM_CHECK(TlclExtend(1, value_in, value_out));
+ printf("TEST SUCCEEDED\n");
exit(0);
}
« no previous file with comments | « tests/tpm_lite/clear.c ('k') | tests/tpm_lite/earlynvram.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698