Home
last modified time | relevance | path

Searched refs:mock_backend (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/subsys/logging/log_stress/src/
Dmain.c31 static struct mock_log_backend mock_backend; variable
38 int off = id - mock_backend.last_id[ctx_id] - 1; in handle_msg()
40 mock_backend.cnt[ctx_id]++; in handle_msg()
45 mock_backend.missing += off; in handle_msg()
48 mock_backend.last_id[ctx_id] = id; in handle_msg()
75 mock_backend.dropped += cnt; in dropped()
97 out_cnt += mock_backend.cnt[i]; in validate()
100 out_cnt += mock_backend.dropped; in validate()
102 zassert_equal(mock_backend.dropped, mock_backend.missing, in validate()
104 mock_backend.dropped, mock_backend.missing); in validate()
[all …]
/Zephyr-latest/tests/subsys/logging/log_blocking/src/
Dmain.c39 static struct mock_log_backend mock_backend; variable
87 ++mock_backend.handled; in handle_output()
131 mock_backend.dropped += cnt; in dropped()
155 TC_PRINT("Log backend dropped %u messages\n", mock_backend.dropped); in print_output()
156 TC_PRINT("Log backend handled %u messages\n", mock_backend.handled); in print_output()
206 zassert_equal(mock_backend.dropped, 0, "dropped %u / %u logs", mock_backend.dropped, in ZTEST()
209 zassert_equal(mock_backend.handled, CONFIG_TEST_NUM_LOGS, "handled %u / %u logs", in ZTEST()
210 mock_backend.handled, CONFIG_TEST_NUM_LOGS); in ZTEST()
232 memset(&mock_backend, 0, sizeof(mock_backend)); in before()
/Zephyr-latest/tests/subsys/logging/log_api/
DCMakeLists.txt8 src/mock_backend.c src/test_module.c src/test_module2.c)
/Zephyr-latest/doc/releases/
Drelease-notes-2.6.rst1215 …8` - [Coverity CID: 236015] Out-of-bounds access in tests/subsys/logging/log_api/src/mock_backend.c
1228 …Coverity CID: 235911] Negative array index write in tests/subsys/logging/log_api/src/mock_backend.c