tests: ringbuffer: code coverage improvements

Add double macros to remove the __week function
when calculating coverage.

Signed-off-by: Ningx Zhao <ningx.zhao@intel.com>
This commit is contained in:
Ningx Zhao 2020-12-23 10:41:08 +08:00 committed by Anas Nashif
commit 36d83a5156

View file

@ -9,6 +9,7 @@
#include <sys/ring_buffer.h>
#include <string.h>
/* LCOV_EXCL_START */
/* The weak function used to allow overwriting it in the test and trigger
* rewinding earlier.
*/
@ -16,6 +17,7 @@ uint32_t __weak ring_buf_get_rewind_threshold(void)
{
return RING_BUFFER_MAX_SIZE;
}
/* LCOV_EXCL_STOP */
/**
* Internal data structure for a buffer header.