Skip to content
Permalink
Browse files

kernel: test coverage for sflist

We were testing all the slist APIs, but not the sflist
variant. Make a copy of the slist tests for sflist,
with the names properly changed.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie committed Jun 30, 2019
1 parent b6e4f91 commit a744501a7d2df4a556ee9f35eb1ca40137c27930
Showing with 394 additions and 0 deletions.
  1. +1 −0 tests/kernel/common/CMakeLists.txt
  2. +2 −0 tests/kernel/common/src/main.c
  3. +391 −0 tests/kernel/common/src/sflist.c
@@ -22,6 +22,7 @@ target_sources(app PRIVATE
src/intmath.c
src/main.c
src/slist.c
src/sflist.c
src/timeout_order.c
src/multilib.c
src/errno.c
@@ -16,6 +16,7 @@ extern void test_atomic(void);
extern void test_intmath(void);
extern void test_printk(void);
extern void test_slist(void);
extern void test_sflist(void);
extern void test_dlist(void);
extern void test_timeout_order(void);
extern void test_clock_cycle(void);
@@ -98,6 +99,7 @@ void test_main(void)
ztest_unit_test(test_bitfield),
ztest_unit_test(test_printk),
ztest_unit_test(test_slist),
ztest_unit_test(test_sflist),
ztest_unit_test(test_dlist),
ztest_unit_test(test_intmath),
ztest_unit_test(test_timeout_order),

0 comments on commit a744501

Please sign in to comment.
You can’t perform that action at this time.