zephyr/tests/kernel
Piotr Zięcik 285bfa7f62 tests: work_queue_api: Fix k_delayed_work_remaining_get() test
Existing test checking value returned by k_delayed_work_remaining_get()
verified two cases:

1) The k_delayed_work_remaining_get() should return 0 for non-submitted
   work.

2) The k_delayed_work_remaining_get() should return value greater or
   equal to the timeout value of just submitted work.

Unfortunately, the second check is not correct. The value returned
by the k_delayed_work_remaining_get() just after submitting delayed
work should be:

- Equal to timeout of the submitted work if no timer interrupt was
  executed between submitting work and checking remaining time.

  OR

- Less than timeout of the submitted work if a timer interrupt was
  executed between submitting work and checking remaining time.

This commit changes the test accordingly taking under account the
error caused by back and forth conversion between ms and ticks.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
2019-07-23 13:54:39 +02:00
..
boot_page_table arch/x86: move arch/x86/include/mmustructs.h to ia32/mmustructs.h 2019-07-03 20:01:17 -04:00
common tests/kernel/common: Fix uptime delta test for fast ticks 2019-07-02 22:52:29 -04:00
context tests/kernel/context: Fix sleep test for fast ticks 2019-07-02 22:52:29 -04:00
critical tests: kernel: critical: alternative test-case for SAM SoCs with WDT 2019-07-11 11:26:01 -05:00
device tests: enable native_posix_64 testing 2019-07-16 10:41:11 -07:00
early_sleep tests/kernel/early_sleep: Fix for fast ticks 2019-07-02 22:52:29 -04:00
fatal tests: fatal: test failed assertion 2019-07-02 22:57:14 -04:00
fifo cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
fp_sharing tests: kernel: fp_sharing: increase robustness of float_disable test 2019-07-19 12:11:38 +02:00
gen_isr_table
interrupt
lifo cleanup: include/: move misc/slist.h to sys/slist.h 2019-06-27 22:55:49 -04:00
mbox
mem_heap/mheap_api_concept malloc: make sure returned memory is properly aligned 2019-07-03 14:17:29 -07:00
mem_pool tests/kernel/mem_pool: Fix timeout units 2019-07-02 22:52:29 -04:00
mem_protect tests: force stack canaries off for two user tests 2019-07-17 09:32:07 -07:00
mem_slab cleanup: include/: move atomic.h to sys/atomic.h 2019-06-27 22:55:49 -04:00
mp
msgq/msgq_api test/msgq: adjust overflow test for 64-bit targets 2019-07-04 07:22:43 -04:00
mutex print format: adjust specifiers to be compatible with a 64-bit build 2019-07-11 20:12:26 -07:00
obj_tracing
pending lifo/fifo: first word is not always first 4 bytes 2019-06-26 09:08:42 -04:00
pipe
poll
profiling/profiling_api cleanup: include/: move misc/stack.h to debug/stack.h 2019-06-27 22:55:49 -04:00
queue mempool: make sure max block size isn't smaller than minimum allowed 2019-07-02 19:41:20 -07:00
sched tests: schedule_api: minor cleanup 2019-07-04 10:04:27 -04:00
semaphore docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
sleep tests/kernel/sleep: Fix usleep test for fast ticks 2019-07-02 22:52:29 -04:00
smp
spinlock
stack
threads kernel: fix CONFIG_THREAD_NAME from user mode. 2019-07-01 16:29:45 -07:00
tickless tests/kernel/tickless/tickless_concept: Force 100 Hz ticks 2019-07-02 22:52:29 -04:00
timer docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
workq tests: work_queue_api: Fix k_delayed_work_remaining_get() test 2019-07-23 13:54:39 +02:00
xip