Call TEE_CreatePersistentObject() with a valid pointer

According to GP specification, passing a NULL pointer to
TEE_OpenPersistentObject() and TEE_CreatePersistentObject()
should panic the trusted application.
Current code is using a NULL pointer and expects success.
After creation (and opening) of the new object,
it should also be closed: we cannot expect to do anything on it.

Signed-off-by: Cedric Auger <cedric.auger@provenrun.com>
Reviewed-by: Jerome Forissier <jerome@forissier.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
1 file changed
tree: 4953f11cb9b02aacfeff04d7f8ee6d742fbc11e8
  1. cert/
  2. host/
  3. package/
  4. scripts/
  5. ta/
  6. .gitignore
  7. Android.mk
  8. CMakeLists.txt
  9. CMakeToolchain.txt
  10. LICENSE.md
  11. Makefile
  12. README.md
README.md

OP-TEE sanity testsuite

This git contains source code for the test suite (xtest) used to test the OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.

// OP-TEE core maintainers