[PATCH openEuler-5.10 40/90] selftests/sgx: Improve error detection and messages