Merging upstream version 1.6.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
adbb3a10cc
commit
6add9877e4
871 changed files with 8481 additions and 1502 deletions
19
test/ioctl/util.h
Normal file
19
test/ioctl/util.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#ifndef _LIBNVME_TEST_IOCTL_UTIL_H
|
||||
#define _LIBNVME_TEST_IOCTL_UTIL_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdnoreturn.h>
|
||||
|
||||
noreturn void fail(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
|
||||
|
||||
#define check(condition, fmt...) ((condition) || (fail(fmt), 0))
|
||||
|
||||
void cmp(const void *actual, const void *expected, size_t len, const char *msg);
|
||||
|
||||
void arbitrary(void *buf, size_t len);
|
||||
|
||||
size_t arbitrary_range(size_t max);
|
||||
|
||||
#endif /* #ifndef _LIBNVME_TEST_IOCTL_UTIL_H */
|
Loading…
Add table
Add a link
Reference in a new issue