Protect test info access with mutex
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/tests/include/test/helpers.h b/tests/include/test/helpers.h
index b672ecc..73459d9 100644
--- a/tests/include/test/helpers.h
+++ b/tests/include/test/helpers.h
@@ -123,16 +123,18 @@
/**
* \brief Get the current test line buffer 1
*
- * \return The current test line buffer 1
+ * \param line Buffer of minimum size \c MBEDTLS_TEST_LINE_LENGTH,
+ * which will have line buffer 1 copied to it.
*/
-const char *mbedtls_test_get_line1(void);
+void mbedtls_test_get_line1(char *line);
/**
* \brief Get the current test line buffer 2
*
- * \return The current test line buffer 2
+ * \param line Buffer of minimum size \c MBEDTLS_TEST_LINE_LENGTH,
+ * which will have line buffer 1 copied to it.
*/
-const char *mbedtls_test_get_line2(void);
+void mbedtls_test_get_line2(char *line);
#if defined(MBEDTLS_TEST_MUTEX_USAGE)
/**