aboutsummaryrefslogtreecommitdiffstats
path: root/test/rt/test.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-04-03 12:48:22 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-04-03 12:48:22 +0000
commit15d0007e9687428fe314e1369a9bb4eeb427cfcc (patch)
tree0ac60d4ec0245764ad601d763b0d3d5dc7c76539 /test/rt/test.c
parent67b6d6cebf167faaf544886e1b1f41aaa404cb35 (diff)
downloadChibiOS-15d0007e9687428fe314e1369a9bb4eeb427cfcc.tar.gz
ChibiOS-15d0007e9687428fe314e1369a9bb4eeb427cfcc.tar.bz2
ChibiOS-15d0007e9687428fe314e1369a9bb4eeb427cfcc.zip
Mass change, all thread functions now return void.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7849 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/rt/test.c')
-rw-r--r--test/rt/test.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/rt/test.c b/test/rt/test.c
index 14638a3dd..5dc791a0f 100644
--- a/test/rt/test.c
+++ b/test/rt/test.c
@@ -56,7 +56,8 @@ static ROMCONST struct testcase * ROMCONST *patterns[] = {
NULL
};
-static bool local_fail, global_fail;
+bool test_global_fail;
+static bool local_fail;
static unsigned failpoint;
static char tokens_buffer[MAX_TOKENS];
static char *tokp;
@@ -156,8 +157,8 @@ void test_emit_token(char token) {
*/
bool _test_fail(unsigned point) {
+ test_global_fail = TRUE;
local_fail = TRUE;
- global_fail = TRUE;
failpoint = point;
return TRUE;
}
@@ -309,9 +310,8 @@ static void print_line(void) {
* @brief Test execution thread function.
*
* @param[in] p pointer to a @p BaseChannel object for test output
- * @return A failure boolean value.
*/
-msg_t TestThread(void *p) {
+void TestThread(void *p) {
int i, j;
chp = p;
@@ -346,7 +346,7 @@ msg_t TestThread(void *p) {
#endif
test_println("");
- global_fail = FALSE;
+ test_global_fail = FALSE;
i = 0;
while (patterns[i]) {
j = 0;
@@ -379,12 +379,10 @@ msg_t TestThread(void *p) {
print_line();
test_println("");
test_print("Final result: ");
- if (global_fail)
+ if (test_global_fail)
test_println("FAILURE");
else
test_println("SUCCESS");
-
- return (msg_t)global_fail;
}
/** @} */