From e9c187ad9c028f3f3b5c222df0959223d15cbc33 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 21 May 2008 17:48:04 +0000 Subject: [PATCH] Add test utility. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1320 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/test.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 bertos/cfg/test.h diff --git a/bertos/cfg/test.h b/bertos/cfg/test.h new file mode 100644 index 00000000..b73ae545 --- /dev/null +++ b/bertos/cfg/test.h @@ -0,0 +1,54 @@ +/** + * \file + * + * + * \brief Utility for the test suite. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_TEST_H +#define CFG_TEST_H + +/** + * Silent an assert in test suite. + * This is use when we do a test suite and we want test + * the error condition, so we now that an assert condition is false + * but is not a really error. To ignore this error we mark it + * with this macro, where str is a messge string of the assert + * that we want to drop. + */ +#define SILENT_ASSERT(str) \ + kputs("SILENT_ASSERT:$"str"$\n") + +#endif /* CFG_TEST_H */ -- 2.25.1