Skip to content
Permalink
Browse files

tests: net: Increase stack sizes for coverage testing

We need to increase the stack sizes if user enables CONFIG_COVERAGE
option. You can test this by this command

    sanitycheck --coverage -p qemu_x86 -T tests/net/udp \
                -T tests/net/mgmt  -T tests/net/mld

This is partial fix for issues described in #17323

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information...
jukkar authored and andrewboie committed Jul 4, 2019
1 parent 223a2b9 commit ac56fd8d27c6aa12c7d38b530168386d06ece14c
Showing with 5 additions and 5 deletions.
  1. +2 −2 tests/net/mgmt/prj.conf
  2. +1 −1 tests/net/mgmt/src/mgmt.c
  3. +1 −1 tests/net/mld/prj.conf
  4. +1 −1 tests/net/udp/prj.conf
@@ -1,9 +1,9 @@
CONFIG_NETWORKING=y
CONFIG_NET_TEST=y
CONFIG_NET_BUF=y
CONFIG_ZTEST_STACKSIZE=896
CONFIG_ZTEST_STACKSIZE=2048
CONFIG_NET_MGMT_EVENT_STACK_SIZE=1024
CONFIG_MAIN_STACK_SIZE=1536
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_NET_PKT_RX_COUNT=5
CONFIG_NET_PKT_TX_COUNT=5
CONFIG_NET_BUF_RX_COUNT=5
@@ -31,7 +31,7 @@ static u32_t event2throw;
static u32_t throw_times;
static int throw_sleep;
static bool with_info;
static K_THREAD_STACK_DEFINE(thrower_stack, 512);
static K_THREAD_STACK_DEFINE(thrower_stack, 512 + CONFIG_TEST_EXTRA_STACKSIZE);
static struct k_thread thrower_thread_data;
static struct k_sem thrower_lock;

@@ -1,5 +1,5 @@
CONFIG_ZTEST=y
CONFIG_MAIN_STACK_SIZE=1024
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_NET_TEST=y
CONFIG_NETWORKING=y
CONFIG_NET_IPV6=y
@@ -8,7 +8,7 @@ CONFIG_NET_IPV6=y
CONFIG_NET_IPV4=y
CONFIG_NET_BUF=y
CONFIG_ZTEST_STACKSIZE=2048
CONFIG_MAIN_STACK_SIZE=1024
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_NET_PKT_RX_COUNT=10
CONFIG_NET_PKT_TX_COUNT=10
CONFIG_NET_BUF_RX_COUNT=15

0 comments on commit ac56fd8

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