samples: chre: use CONFIG_LOG_MODE_MINIMAL
The sample depends on the log output to check for a successful run. This
means that with a small enough log buffer we could lose messages and
fail the run, as it's happening right now on qemu_cortex_m0.
Switching to CONFIG_LOG_MODE_MINIMAL to avoid the problem in the first
place.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
diff --git a/samples/modules/chre/prj.conf b/samples/modules/chre/prj.conf
index 57ff992..7e08ba0 100644
--- a/samples/modules/chre/prj.conf
+++ b/samples/modules/chre/prj.conf
@@ -1,5 +1,6 @@
CONFIG_CHRE=y
CONFIG_LOG=y
+CONFIG_LOG_MODE_MINIMAL=y
CONFIG_CHRE_LOG_LEVEL_DBG=y
CONFIG_CPLUSPLUS=y
diff --git a/samples/modules/chre/sample.yaml b/samples/modules/chre/sample.yaml
index 56b5d45..4bd8cc8 100644
--- a/samples/modules/chre/sample.yaml
+++ b/samples/modules/chre/sample.yaml
@@ -13,13 +13,13 @@
ordered: false
regex:
- "Hello CHRE!"
- - "\\[.*\\] .*<inf> chre: EventLoop start.*"
- - "\\[.*\\] .*<dbg> chre: startNanoapp: Instance ID 1 assigned to app ID 0x0000000000000001.*"
+ - "I: EventLoop start.*"
+ - "D: Instance ID 1 assigned to app ID 0x0000000000000001.*"
- "EchoApp::nanoappStart\\(\\)"
- "EchoApp::nanoappHandleEvent\\(sender_instance_id=0, event_type=1, event_data@\\(nil\\)\\)"
- "Event \\(1\\) complete!"
- "EchoApp::nanoappEnd\\(\\)"
- - "\\[.*\\] .*<inf> chre: Exiting EventLoop.*"
+ - "I: Exiting EventLoop.*"
integration_platforms:
- native_posix
filter: not CONFIG_MINIMAL_LIBC