From: asterix Date: Wed, 21 May 2008 17:48:04 +0000 (+0000) Subject: Add test utility. X-Git-Tag: 2.0.0~614 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=e9c187ad9c028f3f3b5c222df0959223d15cbc33;p=bertos.git Add test utility. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1320 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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 */