Skip to content

Commit 21867fd

Browse files
nordic-krchnashif
authored andcommitted
tests: logging: Update test after adding rodata detection on sparc
Updated tests to tread sparc as any other platforms that are capable of detection if string is read only. Signed-off-by: Krzysztof Chruscinski <[email protected]>
1 parent c2666c3 commit 21867fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/subsys/logging/log_api/src/test.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static size_t get_max_hexdump(void)
321321
HEXDUMP_BYTES_CONT_MSG * (msgs_in_buf - 1);
322322
}
323323

324-
#if defined(__sparc__) || defined(CONFIG_ARCH_POSIX)
324+
#if defined(CONFIG_ARCH_POSIX)
325325
#define STR_SIZE(s) (strlen(s) + 2 * sizeof(char))
326326
#else
327327
#define STR_SIZE(s) 0

tests/subsys/logging/log_msg2/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <ztest.h>
2020
#include <sys/cbprintf.h>
2121

22-
#if defined(__sparc__) || defined(CONFIG_ARCH_POSIX)
22+
#if defined(CONFIG_ARCH_POSIX)
2323
/* On some platforms all strings are considered RW, that impacts size of the
2424
* package.
2525
*/

0 commit comments

Comments
 (0)