Commit Graph

5 Commits (505d1e1fa72cd86dc9de39718afce2a88e1ab30d)

Author SHA1 Message Date
Anna Bridge bcebaa559f Renamed utest files to add a prefix of 'utest_' to prevent namespace
clashes.
It should be noted that the exceptions to this are unity_handler.cpp and
unity_handler.h as these deal with Unity/Utest interaction and should be
unique enough in the namespace.
2016-06-09 18:41:38 +01:00
Anna Bridge d4415eeeac Remove all printfs from test cases which may directly or indirectly run
from an interrupt context. Where required add flags to functions and check
the values in the case teardowns. This allows validation that the case
callback was invoked without the need for an ASSERT or printf directly in
the callback.
In cases where a printf is still required in a test case but it is unclear
whether the code may or may not get called from interrupt context, a new
printf alternative, utest_printf() should be used instead. This just
checks whether the code is executing in interrupt context and only passes
its arguments to printf if not.
2016-06-07 15:48:13 +01:00
Anna Bridge 635afa58fc Update all instances of status_t in the unit tests to fully namespace them
to utest::v1::status_t .
2016-05-27 11:59:25 +01:00
Anna Bridge 710421d3e8 Code review rework:
Updated include files within tests to use subdirectory/header.h
Updated global variables within tests to be static
Fixed indentation issue.
Renamed Timeout class variables to be more meaningful
Moved definition of utest_trace into stack_trace.cpp
Removed unecessary call to .clear() method in utest_add_to_trace()
Changed UTEST_LOG_FUNCTION macro to UTEST_LOG_FUNCTION();
2016-05-19 16:56:00 +01:00
Anna Bridge 4cd34b1235 Port utest unit tests from Yotta / Minar based environment to Morpheus /
us ticker based environment
2016-05-19 16:51:00 +01:00