Hello Simon,
please, have a look and this error:
cmd/tpm_test.c:473:25: note: in expansion of macro ‘assert’
473 | assert(i >= TPM_MAX_NV_WRITES_NOOWNER);
| ^~~~~~
cmd/tpm_test.c:474:17: note: here
474 | default:
| ^~~~~~~
I am not sure if you forgot a break or a fallthrough.
Best regards
Heinrich