Fix missed case for removing accessor

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/tests/src/helpers.c b/tests/src/helpers.c
index ee87a61..da0b54a 100644
--- a/tests/src/helpers.c
+++ b/tests/src/helpers.c
@@ -483,7 +483,7 @@
 #endif /* MBEDTLS_THREADING_C */
 
     /* Don't use accessor, we already hold mutex. */
-    if (mbedtls_test_get_result() != MBEDTLS_TEST_RESULT_FAILED) {
+    if (mbedtls_test_info.result != MBEDTLS_TEST_RESULT_FAILED) {
         /* If we've already recorded the test as having failed then don't
          * overwrite any previous information about the failure. */