Debian Codegraph @

test/utils.h

raw
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 /*
3 * This file is part of libnvme.
4 * Copyright (c) 2022 Code Construct
5 *
6 * Common test utilities for libnvme tests. These have quite strict error
7 * handling, so the general pattern is to abort/exit on error.
8 */
9
10 #ifndef _TEST_UTILS_H
11 #define _TEST_UTILS_H
12
13 #include <stdio.h>
14
15 FILE *test_setup_log(void);
16 void test_print_log_buf(FILE *logfd);
17 void test_close_log(FILE *fd);
18
19 #endif /* _TEST_UTILS_H */
20