summaryrefslogtreecommitdiff
path: root/tests/tpm_lite/tpmtest_enable.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tpm_lite/tpmtest_enable.c')
-rw-r--r--tests/tpm_lite/tpmtest_enable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tpm_lite/tpmtest_enable.c b/tests/tpm_lite/tpmtest_enable.c
index 645cd467..c2fe54b0 100644
--- a/tests/tpm_lite/tpmtest_enable.c
+++ b/tests/tpm_lite/tpmtest_enable.c
@@ -8,6 +8,7 @@
#include <stdio.h>
+#include "2common.h"
#include "host_common.h"
#include "tlcl.h"
#include "tlcl_tests.h"
@@ -27,7 +28,8 @@ int main(int argc, char** argv) {
TPM_CHECK(TlclGetFlags(&disable, &deactivated, NULL));
printf("disable is %d, deactivated is %d\n", disable, deactivated);
if (disable == 1 || deactivated == 1) {
- VbExError("failed to enable or activate");
+ VB2_DEBUG("failed to enable or activate");
+ return 1;
}
printf("TEST SUCCEEDED\n");
return 0;