Skip to content

Commit

Permalink
kernel: test coverage for sflist
Browse files Browse the repository at this point in the history
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
Andrew Boie authored and andrewboie committed Jul 1, 2019
1 parent b6e4f91 commit a744501
Show file tree
Hide file tree
Showing 3 changed files with 394 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/kernel/common/CMakeLists.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ target_sources(app PRIVATE
src/intmath.c src/intmath.c
src/main.c src/main.c
src/slist.c src/slist.c
src/sflist.c
src/timeout_order.c src/timeout_order.c
src/multilib.c src/multilib.c
src/errno.c src/errno.c
Expand Down
2 changes: 2 additions & 0 deletions tests/kernel/common/src/main.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ extern void test_atomic(void);
extern void test_intmath(void); extern void test_intmath(void);
extern void test_printk(void); extern void test_printk(void);
extern void test_slist(void); extern void test_slist(void);
extern void test_sflist(void);
extern void test_dlist(void); extern void test_dlist(void);
extern void test_timeout_order(void); extern void test_timeout_order(void);
extern void test_clock_cycle(void); extern void test_clock_cycle(void);
Expand Down Expand Up @@ -98,6 +99,7 @@ void test_main(void)
ztest_unit_test(test_bitfield), ztest_unit_test(test_bitfield),
ztest_unit_test(test_printk), ztest_unit_test(test_printk),
ztest_unit_test(test_slist), ztest_unit_test(test_slist),
ztest_unit_test(test_sflist),
ztest_unit_test(test_dlist), ztest_unit_test(test_dlist),
ztest_unit_test(test_intmath), ztest_unit_test(test_intmath),
ztest_unit_test(test_timeout_order), ztest_unit_test(test_timeout_order),
Expand Down
Loading

0 comments on commit a744501

Please sign in to comment.