| Index: tests/tpm_lite/globallock.c
|
| diff --git a/tests/tpm_lite/globallock.c b/tests/tpm_lite/globallock.c
|
| index 98a49df75d3285d61d7109628c28dfbce5e5cf5c..c79257cd88b0158c14464e8b365bccc8adb97423 100644
|
| --- a/tests/tpm_lite/globallock.c
|
| +++ b/tests/tpm_lite/globallock.c
|
| @@ -31,8 +31,7 @@ int main(int argc, char** argv) {
|
|
|
| // Verifies that write to index0 fails.
|
| x = 1;
|
| - result = TlclWrite(INDEX0, (uint8_t*) &x, sizeof(x));
|
| - assert(result == TPM_E_AREA_LOCKED);
|
| + TPM_EXPECT(TlclWrite(INDEX0, (uint8_t*) &x, sizeof(x)), TPM_E_AREA_LOCKED);
|
| TPM_CHECK(TlclRead(INDEX0, (uint8_t*) &x, sizeof(x)));
|
| assert(x == 0);
|
|
|
| @@ -47,8 +46,7 @@ int main(int argc, char** argv) {
|
|
|
| // Verifies that write to index1 fails.
|
| x = 3;
|
| - result = TlclWrite(INDEX1, (uint8_t*) &x, sizeof(x));
|
| - assert(result == TPM_E_BAD_PRESENCE);
|
| + TPM_EXPECT(TlclWrite(INDEX1, (uint8_t*) &x, sizeof(x)), TPM_E_BAD_PRESENCE);
|
| TPM_CHECK(TlclRead(INDEX1, (uint8_t*) &x, sizeof(x)));
|
| assert(x == 2);
|
| printf("TEST SUCCEEDED\n");
|
|
|