summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tpm_lite/tpmtest_enable.c4
-rw-r--r--tests/tpm_lite/tpmtest_writelimit.c4
2 files changed, 6 insertions, 2 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;
diff --git a/tests/tpm_lite/tpmtest_writelimit.c b/tests/tpm_lite/tpmtest_writelimit.c
index 66dcc036..cedcd831 100644
--- a/tests/tpm_lite/tpmtest_writelimit.c
+++ b/tests/tpm_lite/tpmtest_writelimit.c
@@ -10,6 +10,7 @@
#include <stdint.h>
#include <stdlib.h>
+#include "2common.h"
#include "host_common.h"
#include "tlcl.h"
#include "tlcl_tests.h"
@@ -39,8 +40,9 @@ int main(int argc, char** argv) {
VbAssert(i >= TPM_MAX_NV_WRITES_NOOWNER);
break;
default:
- VbExError("unexpected error code %d (0x%x)\n",
+ VB2_DEBUG("unexpected error code %d (0x%x)\n",
result, result);
+ exit(1);
}
}
}