Skip to content
Browse files

tests/kernel/mem_pool: Fix timeout units

This code was clearly written to assume that the timeout argument to
k_mem_pool_alloc() was in ticks and not ms.  Adjust to what appears to
have been the intent.  It was working as intended (i.e waiting one or
1/10th of a second) only on systems where the default tick rate was
100 Hz.

Signed-off-by: Andy Ross <>
  • Loading branch information...
andyross authored and nashif committed Jun 11, 2019
1 parent 0baf72e commit b696c3e46992ca88200b8e9344037790c0706178
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/kernel/mem_pool/mem_pool/src/main.c
@@ -22,8 +22,8 @@
#include <tc_util.h>
#include <sys/util.h>

#define ONE_SECOND 1000
#define TENTH_SECOND 100

#define NUM_BLOCKS 64

0 comments on commit b696c3e

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