Skip to content

Commit

Permalink
test rc get random
Browse files Browse the repository at this point in the history
  • Loading branch information
JuergenReppSIT committed Jan 17, 2025
1 parent 33384e5 commit 875ff0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
PROJECT_NAME: ${{ github.event.repository.name }}
- name: failure
if: ${{ failure() }}
run: cat $(find ../ -name test-suite.log) || true
run: cat $(find ../ -name esys-cp-hash.log) || true
scanbuild:
runs-on: ubuntu-latest
if: "!contains(github.ref, 'coverity_scan')"
Expand Down
1 change: 1 addition & 0 deletions src/tss2-esys/api/Esys_GetRandom.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ Esys_GetRandom_Finish(
}
/* This block handle the resubmission of TPM commands given a certain set of
* TPM response codes. */
LOG_ERROR("XXX Test return code %x", r);
if (r == TPM2_RC_RETRY || r == TPM2_RC_TESTING || r == TPM2_RC_YIELDED) {
LOG_DEBUG("TPM returned RETRY, TESTING or YIELDED, which triggers a "
"resubmission: %" PRIx32, r);
Expand Down
1 change: 1 addition & 0 deletions test/integration/esys-cp-hash.int.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ test_esyscp_hash(ESYS_CONTEXT * esys_context)
free(cp_hash);

r = Esys_GetRandom_Finish(esys_context, &randomBytes);
LOG_ERROR("XXX Test return code2 %x", r);
while (r == TSS2_ESYS_RC_TRY_AGAIN) {
r = Esys_GetRandom_Finish(esys_context, &randomBytes);
}
Expand Down

0 comments on commit 875ff0c

Please sign in to comment.