Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tc_capture.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Intel Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
35
36#ifndef ZEPHYR_TESTSUITE_TC_CAPTURE_H_
37#define ZEPHYR_TESTSUITE_TC_CAPTURE_H_
38
39#include <stdbool.h>
40#include <stddef.h>
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
55
63void tc_capture_stop(void);
64
73bool tc_capture_contains(const char *substr);
74
86size_t tc_capture_get(char *dst, size_t size);
87
92
93#ifdef __cplusplus
94}
95#endif
96
97#endif /* ZEPHYR_TESTSUITE_TC_CAPTURE_H_ */
void tc_capture_stop(void)
Stop capturing test output.
size_t tc_capture_get(char *dst, size_t size)
Copy the captured output into a caller-provided buffer.
void tc_capture_start(void)
Start capturing test output.
bool tc_capture_contains(const char *substr)
Check whether the captured output contains a substring.
void tc_capture_clear(void)
Discard any captured output without stopping capture.