BSP430
20141115
Board Support Package for MSP430 microcontrollers
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
utility/unittest/main.c
#include <
bsp430/platform.h
>
#include <
bsp430/clock.h
>
#include <
bsp430/utility/uptime.h
>
#include <
bsp430/utility/unittest.h
>
#ifndef APP_ONLY_PASSING
#define APP_ONLY_PASSING 0
#endif
/* APP_ONLY_PASSING */
void
main ()
{
int
rv;
(void)rv;
vBSP430platformInitialize_ni
();
vBSP430unittestInitialize
();
#if ! APP_ONLY_PASSING
BSP430_UNITTEST_FAIL
(
"unconditional"
);
#endif
/* APP_ONLY_PASSING */
BSP430_UNITTEST_ASSERT_TRUE
(1 == 1);
BSP430_UNITTEST_ASSERT_TRUE
(1 != 2);
BSP430_UNITTEST_ASSERT_FALSE
(1 != 1);
BSP430_UNITTEST_ASSERT_FALSE
(1 == 2);
#if ! APP_ONLY_PASSING
rv = 42;
BSP430_UNITTEST_ASSERT_EQUAL_FMTd
(1, rv);
#endif
/* APP_ONLY_PASSING */
vBSP430unittestFinalize
();
}
Generated on Sat Nov 15 2014 11:27:13 for BSP430 by
1.8.8