2007-10-03 17:14:03 +00:00
|
|
|
/*
|
2013-03-30 10:32:37 +00:00
|
|
|
ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio
|
2007-10-03 17:14:03 +00:00
|
|
|
|
2013-03-30 10:32:37 +00:00
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
2007-10-03 17:14:03 +00:00
|
|
|
|
2013-03-30 10:32:37 +00:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2007-10-03 17:14:03 +00:00
|
|
|
|
2013-03-30 10:32:37 +00:00
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
2007-10-03 17:14:03 +00:00
|
|
|
*/
|
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
|
|
|
* @file test.c
|
|
|
|
* @brief Tests support code.
|
|
|
|
*
|
|
|
|
* @addtogroup test
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2009-12-08 17:37:49 +00:00
|
|
|
#include "ch.h"
|
2010-02-20 11:39:33 +00:00
|
|
|
#include "hal.h"
|
2007-10-03 17:14:03 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
#include "test.h"
|
2009-04-13 08:15:51 +00:00
|
|
|
#include "testthd.h"
|
2008-06-26 10:54:55 +00:00
|
|
|
#include "testsem.h"
|
|
|
|
#include "testmtx.h"
|
|
|
|
#include "testmsg.h"
|
2009-02-18 12:58:35 +00:00
|
|
|
#include "testmbox.h"
|
2008-11-09 09:31:17 +00:00
|
|
|
#include "testevt.h"
|
2008-08-28 15:10:54 +00:00
|
|
|
#include "testheap.h"
|
2008-08-26 14:43:09 +00:00
|
|
|
#include "testpools.h"
|
2008-09-23 15:04:14 +00:00
|
|
|
#include "testdyn.h"
|
2009-05-03 16:42:52 +00:00
|
|
|
#include "testqueues.h"
|
2008-06-26 13:36:25 +00:00
|
|
|
#include "testbmk.h"
|
2007-11-14 16:32:41 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
/*
|
2009-02-16 18:22:49 +00:00
|
|
|
* Array of all the test patterns.
|
2008-06-26 10:54:55 +00:00
|
|
|
*/
|
2010-07-03 07:02:34 +00:00
|
|
|
static ROMCONST struct testcase * ROMCONST *patterns[] = {
|
2009-04-13 08:15:51 +00:00
|
|
|
patternthd,
|
2009-02-16 18:22:49 +00:00
|
|
|
patternsem,
|
|
|
|
patternmtx,
|
|
|
|
patternmsg,
|
2009-02-18 12:58:35 +00:00
|
|
|
patternmbox,
|
2009-02-16 18:22:49 +00:00
|
|
|
patternevt,
|
|
|
|
patternheap,
|
|
|
|
patternpools,
|
|
|
|
patterndyn,
|
2009-05-03 16:42:52 +00:00
|
|
|
patternqueues,
|
2009-02-16 18:22:49 +00:00
|
|
|
patternbmk,
|
2008-06-26 10:54:55 +00:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
static bool_t local_fail, global_fail;
|
2009-04-25 11:12:10 +00:00
|
|
|
static unsigned failpoint;
|
2008-06-26 10:54:55 +00:00
|
|
|
static char tokens_buffer[MAX_TOKENS];
|
|
|
|
static char *tokp;
|
2009-05-16 11:53:48 +00:00
|
|
|
|
2009-05-16 12:37:01 +00:00
|
|
|
/*
|
|
|
|
* Static working areas, the following areas can be used for threads or
|
2010-02-21 07:24:53 +00:00
|
|
|
* used as temporary buffers.
|
2009-05-16 12:37:01 +00:00
|
|
|
*/
|
2009-10-16 17:45:19 +00:00
|
|
|
union test_buffers test;
|
2008-06-26 10:54:55 +00:00
|
|
|
|
2009-05-16 12:37:01 +00:00
|
|
|
/*
|
2010-02-21 07:24:53 +00:00
|
|
|
* Pointers to the spawned threads.
|
2009-05-16 12:37:01 +00:00
|
|
|
*/
|
2008-06-26 10:54:55 +00:00
|
|
|
Thread *threads[MAX_THREADS];
|
2007-10-03 17:14:03 +00:00
|
|
|
|
2009-05-16 12:37:01 +00:00
|
|
|
/*
|
2010-02-21 07:24:53 +00:00
|
|
|
* Pointers to the working areas.
|
2009-05-16 12:37:01 +00:00
|
|
|
*/
|
2010-06-25 08:55:40 +00:00
|
|
|
void * ROMCONST wa[5] = {test.wa.T0, test.wa.T1, test.wa.T2,
|
|
|
|
test.wa.T3, test.wa.T4};
|
2009-05-16 12:37:01 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
/*
|
|
|
|
* Console output.
|
|
|
|
*/
|
2012-05-08 17:09:20 +00:00
|
|
|
static BaseSequentialStream *chp;
|
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
|
|
|
* @brief Prints a decimal unsigned number.
|
|
|
|
*
|
|
|
|
* @param[in] n the number to be printed
|
|
|
|
*/
|
2008-06-26 10:54:55 +00:00
|
|
|
void test_printn(uint32_t n) {
|
2007-11-13 16:38:23 +00:00
|
|
|
char buf[16], *p;
|
|
|
|
|
|
|
|
if (!n)
|
2012-06-18 16:22:34 +00:00
|
|
|
chSequentialStreamPut(chp, '0');
|
2007-11-13 16:38:23 +00:00
|
|
|
else {
|
|
|
|
p = buf;
|
|
|
|
while (n)
|
2008-03-05 15:56:12 +00:00
|
|
|
*p++ = (n % 10) + '0', n /= 10;
|
2007-11-13 16:38:23 +00:00
|
|
|
while (p > buf)
|
2012-06-18 16:22:34 +00:00
|
|
|
chSequentialStreamPut(chp, *--p);
|
2007-11-13 16:38:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
|
|
|
* @brief Prints a line without final end-of-line.
|
|
|
|
*
|
|
|
|
* @param[in] msgp the message
|
|
|
|
*/
|
2010-06-15 11:34:16 +00:00
|
|
|
void test_print(const char *msgp) {
|
2007-10-03 17:14:03 +00:00
|
|
|
|
|
|
|
while (*msgp)
|
2012-06-18 16:22:34 +00:00
|
|
|
chSequentialStreamPut(chp, *msgp++);
|
2007-11-13 16:38:23 +00:00
|
|
|
}
|
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
|
|
|
* @brief Prints a line.
|
|
|
|
*
|
|
|
|
* @param[in] msgp the message
|
|
|
|
*/
|
2010-06-15 11:34:16 +00:00
|
|
|
void test_println(const char *msgp) {
|
2007-11-13 16:38:23 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
test_print(msgp);
|
2012-05-08 17:28:23 +00:00
|
|
|
chSequentialStreamWrite(chp, (const uint8_t *)"\r\n", 2);
|
2007-10-03 17:14:03 +00:00
|
|
|
}
|
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
/*
|
|
|
|
* Tokens.
|
|
|
|
*/
|
|
|
|
static void clear_tokens(void) {
|
2007-12-16 19:01:30 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
tokp = tokens_buffer;
|
2007-12-16 19:01:30 +00:00
|
|
|
}
|
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
static void print_tokens(void) {
|
|
|
|
char *cp = tokens_buffer;
|
2007-12-16 19:01:30 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
while (cp < tokp)
|
2012-06-18 16:22:34 +00:00
|
|
|
chSequentialStreamPut(chp, *cp++);
|
2007-12-16 19:01:30 +00:00
|
|
|
}
|
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
|
|
|
* @brief Emits a token into the tokens buffer.
|
|
|
|
*
|
|
|
|
* @param[in] token the token as a char
|
|
|
|
*/
|
2008-06-26 10:54:55 +00:00
|
|
|
void test_emit_token(char token) {
|
2007-12-16 19:01:30 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
chSysLock();
|
|
|
|
*tokp++ = token;
|
|
|
|
chSysUnlock();
|
2007-12-16 19:01:30 +00:00
|
|
|
}
|
|
|
|
|
2007-12-19 11:23:56 +00:00
|
|
|
/*
|
2008-06-26 10:54:55 +00:00
|
|
|
* Assertions.
|
2007-12-19 11:23:56 +00:00
|
|
|
*/
|
2009-04-25 11:12:10 +00:00
|
|
|
bool_t _test_fail(unsigned point) {
|
2007-12-16 19:01:30 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
local_fail = TRUE;
|
|
|
|
global_fail = TRUE;
|
2009-04-25 11:12:10 +00:00
|
|
|
failpoint = point;
|
2008-11-01 17:49:53 +00:00
|
|
|
return TRUE;
|
2007-12-16 19:01:30 +00:00
|
|
|
}
|
|
|
|
|
2009-04-25 11:12:10 +00:00
|
|
|
bool_t _test_assert(unsigned point, bool_t condition) {
|
2007-12-19 11:23:56 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
if (!condition)
|
2009-04-25 11:12:10 +00:00
|
|
|
return _test_fail(point);
|
2008-11-01 17:49:53 +00:00
|
|
|
return FALSE;
|
2007-12-19 11:23:56 +00:00
|
|
|
}
|
|
|
|
|
2009-04-25 11:12:10 +00:00
|
|
|
bool_t _test_assert_sequence(unsigned point, char *expected) {
|
2008-06-26 10:54:55 +00:00
|
|
|
char *cp = tokens_buffer;
|
|
|
|
while (cp < tokp) {
|
|
|
|
if (*cp++ != *expected++)
|
2009-04-25 11:12:10 +00:00
|
|
|
return _test_fail(point);
|
2008-06-26 10:54:55 +00:00
|
|
|
}
|
|
|
|
if (*expected)
|
2009-04-25 11:12:10 +00:00
|
|
|
return _test_fail(point);
|
2009-05-09 13:06:30 +00:00
|
|
|
clear_tokens();
|
2008-11-01 17:49:53 +00:00
|
|
|
return FALSE;
|
2007-12-19 11:23:56 +00:00
|
|
|
}
|
|
|
|
|
2009-04-25 11:12:10 +00:00
|
|
|
bool_t _test_assert_time_window(unsigned point, systime_t start, systime_t end) {
|
2007-12-19 11:23:56 +00:00
|
|
|
|
2009-04-25 11:12:10 +00:00
|
|
|
return _test_assert(point, chTimeIsWithin(start, end));
|
2007-12-19 11:23:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2008-06-26 10:54:55 +00:00
|
|
|
* Threads utils.
|
2007-12-19 11:23:56 +00:00
|
|
|
*/
|
2010-04-27 11:53:03 +00:00
|
|
|
|
|
|
|
/**
|
2010-10-09 10:17:11 +00:00
|
|
|
* @brief Sets a termination request in all the test-spawned threads.
|
2010-04-27 11:53:03 +00:00
|
|
|
*/
|
2008-07-30 14:56:35 +00:00
|
|
|
void test_terminate_threads(void) {
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i < MAX_THREADS; i++)
|
|
|
|
if (threads[i])
|
|
|
|
chThdTerminate(threads[i]);
|
|
|
|
}
|
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
|
|
|
* @brief Waits for the completion of all the test-spawned threads.
|
|
|
|
*/
|
2008-06-26 10:54:55 +00:00
|
|
|
void test_wait_threads(void) {
|
|
|
|
int i;
|
2007-12-19 11:23:56 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
for (i = 0; i < MAX_THREADS; i++)
|
2009-04-12 13:00:42 +00:00
|
|
|
if (threads[i] != NULL) {
|
2008-06-26 10:54:55 +00:00
|
|
|
chThdWait(threads[i]);
|
2009-04-12 13:00:42 +00:00
|
|
|
threads[i] = NULL;
|
|
|
|
}
|
2007-12-16 19:01:30 +00:00
|
|
|
}
|
|
|
|
|
2009-05-09 13:06:30 +00:00
|
|
|
#if CH_DBG_THREADS_PROFILING
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
|
|
|
* @brief CPU pulse.
|
|
|
|
* @note The current implementation is not totally reliable.
|
|
|
|
*
|
|
|
|
* @param[in] duration CPU pulse duration in milliseconds
|
|
|
|
*/
|
2009-05-09 13:06:30 +00:00
|
|
|
void test_cpu_pulse(unsigned duration) {
|
2009-05-09 19:36:30 +00:00
|
|
|
systime_t start, end, now;
|
2007-10-03 17:14:03 +00:00
|
|
|
|
2009-05-09 19:36:30 +00:00
|
|
|
start = chThdSelf()->p_time;
|
|
|
|
end = start + MS2ST(duration);
|
|
|
|
do {
|
|
|
|
now = chThdSelf()->p_time;
|
2009-12-24 09:38:50 +00:00
|
|
|
#if defined(SIMULATOR)
|
2007-11-14 16:32:41 +00:00
|
|
|
ChkIntSources();
|
|
|
|
#endif
|
|
|
|
}
|
2009-05-09 19:36:30 +00:00
|
|
|
while (end > start ? (now >= start) && (now < end) :
|
|
|
|
(now >= start) || (now < end));
|
2007-12-21 15:27:59 +00:00
|
|
|
}
|
2009-05-09 13:06:30 +00:00
|
|
|
#endif
|
2007-12-21 15:27:59 +00:00
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
2010-10-09 10:17:11 +00:00
|
|
|
* @brief Delays execution until next system time tick.
|
|
|
|
*
|
|
|
|
* @return The system time.
|
2010-04-27 11:53:03 +00:00
|
|
|
*/
|
2008-06-26 13:36:25 +00:00
|
|
|
systime_t test_wait_tick(void) {
|
|
|
|
|
2008-07-02 12:32:13 +00:00
|
|
|
chThdSleep(1);
|
2009-03-10 15:31:58 +00:00
|
|
|
return chTimeNow();
|
2008-07-02 12:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Timer utils.
|
|
|
|
*/
|
2010-04-27 11:53:03 +00:00
|
|
|
|
2010-10-09 10:17:11 +00:00
|
|
|
/**
|
|
|
|
* @brief Set to @p TRUE when the test timer reaches its deadline.
|
|
|
|
*/
|
2008-07-02 12:32:13 +00:00
|
|
|
bool_t test_timer_done;
|
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
static VirtualTimer vt;
|
2008-07-02 12:32:13 +00:00
|
|
|
static void tmr(void *p) {
|
2009-10-17 10:33:37 +00:00
|
|
|
(void)p;
|
2008-07-02 12:32:13 +00:00
|
|
|
|
|
|
|
test_timer_done = TRUE;
|
|
|
|
}
|
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
|
|
|
* @brief Starts the test timer.
|
|
|
|
*
|
|
|
|
* @param[in] ms time in milliseconds
|
|
|
|
*/
|
2008-10-15 18:26:16 +00:00
|
|
|
void test_start_timer(unsigned ms) {
|
2008-07-02 12:32:13 +00:00
|
|
|
|
2008-10-15 18:26:16 +00:00
|
|
|
systime_t duration = MS2ST(ms);
|
2008-07-02 12:32:13 +00:00
|
|
|
test_timer_done = FALSE;
|
2012-02-08 17:53:52 +00:00
|
|
|
chVTSet(&vt, duration, tmr, NULL);
|
2008-06-26 13:36:25 +00:00
|
|
|
}
|
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
/*
|
|
|
|
* Test suite execution.
|
|
|
|
*/
|
|
|
|
static void execute_test(const struct testcase *tcp) {
|
|
|
|
int i;
|
2007-12-21 15:27:59 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
/* Initialization */
|
|
|
|
clear_tokens();
|
|
|
|
local_fail = FALSE;
|
|
|
|
for (i = 0; i < MAX_THREADS; i++)
|
|
|
|
threads[i] = NULL;
|
2007-12-16 19:01:30 +00:00
|
|
|
|
2009-02-16 18:22:49 +00:00
|
|
|
if (tcp->setup != NULL)
|
|
|
|
tcp->setup();
|
2008-06-26 10:54:55 +00:00
|
|
|
tcp->execute();
|
2009-02-16 18:22:49 +00:00
|
|
|
if (tcp->teardown != NULL)
|
|
|
|
tcp->teardown();
|
2009-04-12 13:00:42 +00:00
|
|
|
|
|
|
|
test_wait_threads();
|
2007-12-21 15:27:59 +00:00
|
|
|
}
|
|
|
|
|
2009-04-25 14:56:16 +00:00
|
|
|
static void print_line(void) {
|
|
|
|
unsigned i;
|
|
|
|
|
|
|
|
for (i = 0; i < 76; i++)
|
2012-06-18 16:22:34 +00:00
|
|
|
chSequentialStreamPut(chp, '-');
|
2012-05-08 17:28:23 +00:00
|
|
|
chSequentialStreamWrite(chp, (const uint8_t *)"\r\n", 2);
|
2009-04-25 14:56:16 +00:00
|
|
|
}
|
|
|
|
|
2010-04-27 11:53:03 +00:00
|
|
|
/**
|
|
|
|
* @brief Test execution thread function.
|
|
|
|
*
|
|
|
|
* @param[in] p pointer to a @p BaseChannel object for test output
|
2010-10-09 10:17:11 +00:00
|
|
|
* @return A failure boolean value.
|
2010-04-27 11:53:03 +00:00
|
|
|
*/
|
2008-06-26 10:54:55 +00:00
|
|
|
msg_t TestThread(void *p) {
|
2009-02-16 18:22:49 +00:00
|
|
|
int i, j;
|
2007-12-21 15:27:59 +00:00
|
|
|
|
2009-05-02 20:15:04 +00:00
|
|
|
chp = p;
|
2008-06-26 10:54:55 +00:00
|
|
|
test_println("");
|
2009-04-25 14:56:16 +00:00
|
|
|
test_println("*** ChibiOS/RT test suite");
|
|
|
|
test_println("***");
|
|
|
|
test_print("*** Kernel: ");
|
|
|
|
test_println(CH_KERNEL_VERSION);
|
2011-09-23 15:48:55 +00:00
|
|
|
test_print("*** Compiled: ");
|
|
|
|
test_println(__DATE__ " - " __TIME__);
|
2011-05-17 14:49:51 +00:00
|
|
|
#ifdef CH_COMPILER_NAME
|
|
|
|
test_print("*** Compiler: ");
|
|
|
|
test_println(CH_COMPILER_NAME);
|
2010-02-20 11:39:33 +00:00
|
|
|
#endif
|
|
|
|
test_print("*** Architecture: ");
|
|
|
|
test_println(CH_ARCHITECTURE_NAME);
|
|
|
|
#ifdef CH_CORE_VARIANT_NAME
|
|
|
|
test_print("*** Core Variant: ");
|
|
|
|
test_println(CH_CORE_VARIANT_NAME);
|
|
|
|
#endif
|
2011-05-17 14:49:51 +00:00
|
|
|
#ifdef CH_PORT_INFO
|
|
|
|
test_print("*** Port Info: ");
|
|
|
|
test_println(CH_PORT_INFO);
|
|
|
|
#endif
|
2010-02-20 11:39:33 +00:00
|
|
|
#ifdef PLATFORM_NAME
|
|
|
|
test_print("*** Platform: ");
|
|
|
|
test_println(PLATFORM_NAME);
|
|
|
|
#endif
|
|
|
|
#ifdef BOARD_NAME
|
|
|
|
test_print("*** Test Board: ");
|
|
|
|
test_println(BOARD_NAME);
|
2009-04-25 15:32:28 +00:00
|
|
|
#endif
|
2008-06-26 10:54:55 +00:00
|
|
|
test_println("");
|
2007-11-29 09:16:53 +00:00
|
|
|
|
2008-06-26 10:54:55 +00:00
|
|
|
global_fail = FALSE;
|
2007-11-29 09:16:53 +00:00
|
|
|
i = 0;
|
2009-02-16 18:22:49 +00:00
|
|
|
while (patterns[i]) {
|
2009-02-16 20:38:05 +00:00
|
|
|
j = 0;
|
|
|
|
while (patterns[i][j]) {
|
2009-04-25 14:56:16 +00:00
|
|
|
print_line();
|
2009-02-16 18:22:49 +00:00
|
|
|
test_print("--- Test Case ");
|
|
|
|
test_printn(i + 1);
|
|
|
|
test_print(".");
|
|
|
|
test_printn(j + 1);
|
|
|
|
test_print(" (");
|
2010-06-15 11:34:16 +00:00
|
|
|
test_print(patterns[i][j]->name);
|
2008-06-26 10:54:55 +00:00
|
|
|
test_println(")");
|
2010-01-03 08:16:18 +00:00
|
|
|
#if DELAY_BETWEEN_TESTS > 0
|
|
|
|
chThdSleepMilliseconds(DELAY_BETWEEN_TESTS);
|
|
|
|
#endif
|
2009-02-16 18:22:49 +00:00
|
|
|
execute_test(patterns[i][j]);
|
|
|
|
if (local_fail) {
|
2009-04-25 15:00:43 +00:00
|
|
|
test_print("--- Result: FAILURE (#");
|
2009-04-25 11:12:10 +00:00
|
|
|
test_printn(failpoint);
|
|
|
|
test_print(" [");
|
|
|
|
print_tokens();
|
|
|
|
test_println("])");
|
2009-02-16 18:22:49 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
test_println("--- Result: SUCCESS");
|
|
|
|
j++;
|
2008-06-26 10:54:55 +00:00
|
|
|
}
|
2007-12-03 16:19:47 +00:00
|
|
|
i++;
|
|
|
|
}
|
2009-04-25 14:56:16 +00:00
|
|
|
print_line();
|
2008-06-26 10:54:55 +00:00
|
|
|
test_println("");
|
|
|
|
test_print("Final result: ");
|
|
|
|
if (global_fail)
|
2009-04-25 15:00:43 +00:00
|
|
|
test_println("FAILURE");
|
2008-06-26 10:54:55 +00:00
|
|
|
else
|
|
|
|
test_println("SUCCESS");
|
2007-12-16 19:01:30 +00:00
|
|
|
|
2009-03-13 19:30:52 +00:00
|
|
|
return (msg_t)global_fail;
|
2007-10-03 17:14:03 +00:00
|
|
|
}
|
2010-04-27 11:53:03 +00:00
|
|
|
|
|
|
|
/** @} */
|