Skip to content

Commit 9fc4409

Browse files
committed
Changed to unique tpm handles in general_esys_tr_tests.
- Changed the values of the NV index TPM handles for the general esys tr context method tests in order to make them unique. Signed-off-by: Jesper Brynolf <[email protected]>
1 parent 2e39adf commit 9fc4409

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tss-esapi/tests/integration_tests/context_tests/general_esys_tr_tests.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ mod test_tr_from_tpm_public {
5454
fn test_tr_from_tpm_public_owner_auth() {
5555
let mut context = create_ctx_without_session();
5656

57-
let nv_index_tpm_handle = NvIndexTpmHandle::new(0x01500021).unwrap();
57+
let nv_index_tpm_handle = NvIndexTpmHandle::new(0x01500301).unwrap();
5858

5959
// closure for cleaning up if a call fails.
6060
let cleanup = |context: &mut Context,
@@ -124,7 +124,7 @@ mod test_tr_from_tpm_public {
124124

125125
#[test]
126126
fn test_tr_from_tpm_public_password_auth() {
127-
let nv_index_tpm_handle = NvIndexTpmHandle::new(0x01500022).unwrap();
127+
let nv_index_tpm_handle = NvIndexTpmHandle::new(0x01500302).unwrap();
128128
remove_nv_index_handle_from_tpm(nv_index_tpm_handle, Provision::Owner);
129129

130130
let mut context = create_ctx_without_session();
@@ -226,7 +226,7 @@ mod test_tr_from_tpm_public {
226226

227227
#[test]
228228
fn read_from_retrieved_handle_using_password_authorization() {
229-
let nv_index_tpm_handle = NvIndexTpmHandle::new(0x01500023).unwrap();
229+
let nv_index_tpm_handle = NvIndexTpmHandle::new(0x01500303).unwrap();
230230

231231
remove_nv_index_handle_from_tpm(nv_index_tpm_handle, Provision::Owner);
232232

@@ -381,7 +381,7 @@ mod test_tr_from_tpm_public {
381381
fn test_tr_get_tpm_handle() {
382382
use tss_esapi::handles::TpmHandle;
383383

384-
let nv_index_tpm_handle = NvIndexTpmHandle::new(0x01500024).unwrap();
384+
let nv_index_tpm_handle = NvIndexTpmHandle::new(0x01500304).unwrap();
385385
remove_nv_index_handle_from_tpm(nv_index_tpm_handle, Provision::Owner);
386386

387387
let mut context = create_ctx_without_session();

0 commit comments

Comments
 (0)