Age | Commit message (Collapse) | Author | Files | Lines |
|
Sometimes multiple test cases share the same test function, running it
on different data. To pass this data to test functions we must define
setup function for each data set. It's not very convienient when there
are many states to test.
This commit introduce more elegant way to pass data to tests. The
initial_state field of CMUnitTest structure can be defined by user.
It will be either passed to setup function, which makes any preparation
needed, or it will be passed directly to test function when setup func is
NULL.
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
|
|
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
|
This way we make sure we don't run into an assert if we have more
teardown functions than setup functions.
|
|
This reverts commit eb3613e6b4c7b1d6d3a6593bd20ce8654e6bc5b8.
|
|
|
|
|