From 734aea5b10f4d7470d29c07ae51fbd9d9b588205 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 16 Oct 2017 18:58:50 +0000 Subject: Enhanced test system, not complete yet. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10837 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/lib/ch_test.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/lib/ch_test.h') diff --git a/test/lib/ch_test.h b/test/lib/ch_test.h index 3b805d6b5..236b6ed23 100644 --- a/test/lib/ch_test.h +++ b/test/lib/ch_test.h @@ -68,23 +68,23 @@ typedef struct { /** * @brief Structure representing a test sequence. */ -typedef const struct { - const char *name; /**< @brief Name of the test sequence. */ - testcase_t *cases; /**< @brief Test cases array. */ +typedef struct { + const char *name; /**< @brief Name of the test sequence. */ + const testcase_t * const * cases; /**< @brief Test cases array. */ } testsequence_t; /** * @brief Type of a test suite. */ -typedef const struct { - const char *name; /**< @brief Name of the test suite. */ - testsequence_t *sequences; /**< @brief Test sequences array. */ -} ts_t; +typedef struct { + const char *name; /**< @brief Name of the test suite. */ + const testsequence_t * const * sequences; /**< @brief Test sequences array. */ +} testsuite_t; /** * @brief Type of a test suite. */ -typedef const testcase_t * const *testsuite_t[]; +//typedef const testcase_t * const *testsuite_t[]; /*===========================================================================*/ /* Module macros. */ @@ -194,7 +194,7 @@ extern "C" { void test_println(const char *msgp); void test_emit_token(char token); void test_emit_token_i(char token); - msg_t test_execute(BaseSequentialStream *stream, testsuite_t ts); + msg_t test_execute(BaseSequentialStream *stream, const testsuite_t *tsp); #ifdef __cplusplus } #endif -- cgit v1.2.3