Skip to content

Commit 516525f

Browse files
ozhurakiioannisg
authored andcommitted
samples: net: echo-server: Increase the stack size for the coverage
echo_server crashes if the coverage is enabled due to the insufficient stack size. Use bigger stack size when the coverage is enabled. Fixes #20797 Signed-off-by: Oleg Zhurakivskyy <[email protected]>
1 parent c0cdd46 commit 516525f

File tree

1 file changed

+3
-2
lines changed
  • samples/net/sockets/echo_server/src

1 file changed

+3
-2
lines changed

samples/net/sockets/echo_server/src/common.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
/*
2-
* Copyright (c) 2017 Intel Corporation.
2+
* Copyright (c) 2017-2019 Intel Corporation.
33
* Copyright (c) 2018 Nordic Semiconductor ASA.
44
*
55
* SPDX-License-Identifier: Apache-2.0
66
*/
77

88

99
#define MY_PORT 4242
10-
#if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS) || defined(CONFIG_NET_TCP2)
10+
#if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS) || defined(CONFIG_NET_TCP2) || \
11+
defined(CONFIG_COVERAGE)
1112
#define STACK_SIZE 4096
1213
#else
1314
#define STACK_SIZE 1024

0 commit comments

Comments
 (0)