Commit f6243d9c authored by Ivan Orlov's avatar Ivan Orlov Committed by Anup Patel
Browse files

lib: tests: Add test suite init function



Allow to define an init function for the test suite. It could help us
to initialize global variable once, and use them in multiple test cases
after the initialization.

For instance, if multiple test cases use the same atomic_t var, it
could be helpful to call ATOMIC_INIT once during the suite
initialization.

Signed-off-by: default avatarIvan Orlov <ivan.orlov0322@gmail.com>
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
parent d4d2582e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment