Description:
The DefineSpace04 test currently fails because this test is expecting that
it
will
get an error when incorrectly defining a space. However, when it fails to
not
create
the space it leaves it around. This change removes the space so that further
runs of
the test will have a chance at doing the right thing.
Please review this at http://codereview.chromium.org/1315006
Affected files:
M testsuite/tcg/nv/Tspi_NV_DefineSpace04.c
Index: testsuite/tcg/nv/Tspi_NV_DefineSpace04.c
diff --git a/testsuite/tcg/nv/Tspi_NV_DefineSpace04.c
b/testsuite/tcg/nv/Tspi_NV_DefineSpace04.c
index
4ac756d633a555054df74e695c4c01f2c407b15f..42e3d0de32eed67f624ffb95ece183c049b5d61d
100644
--- a/testsuite/tcg/nv/Tspi_NV_DefineSpace04.c
+++ b/testsuite/tcg/nv/Tspi_NV_DefineSpace04.c
@@ -207,6 +207,13 @@ main_v1_2(char version)
else{
print_error("Tspi_NV_DefineSpace", result);
print_end_test(nameOfFunction);
+ #ifdef CLEAR_TEST_INDEX
+ if ( result == TSS_SUCCESS )
+ {
+ result = Tspi_NV_ReleaseSpace(hNVStore);
+ print_error("Clearing the index.", result);
+ }
+ #endif
Tspi_Context_FreeMemory(hContext, NULL);
Tspi_Context_Close(hContext);
if ( result == TSS_SUCCESS )