git: d77271ce7a65 - main - linuxkpi: Add `kunit_fail_current_test()`
Jean-Sébastien Pédron <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.src,gmane.os.freebsd.current.scm |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=d77271ce7a65713d00d19a1617d6ccc5783388b7 commit d77271ce7a65713d00d19a1617d6ccc5783388b7 Author: Jean-Sébastien Pédron <[email protected]> AuthorDate: 2026-08-15 18:27:03 +0000 Commit: Jean-Sébastien Pédron <[email protected]> CommitDate: 2026-08-15 18:27:03 +0000 linuxkpi: Add `kunit_fail_current_test()` This is part of some unit testing framework. The DRM drivers generic code started to use it in Linux 6.15. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D58249 --- sys/compat/linuxkpi/common/include/kunit/test-bug.h | 12 ++++++++++++ sys/compat/linuxkpi/dummy/include/kunit/test-bug.h | 0 2 files changed, 12 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/kunit/test-bug.h b/sys/compat/linuxkpi/common/include/kunit/test-bug.h new file mode 100644 index 000000000000..46a8c43ea836 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/kunit/test-bug.h @@ -0,0 +1,12 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2026 The FreeBSD Foundation + */ + +#ifndef _LINUXKPI_KUNIT_TEST_BUG_H_ +#define _LINUXKPI_KUNIT_TEST_BUG_H_ + +#define kunit_fail_current_test(fmt, ...) do {} while (0) + +#endif /* _LINUXKPI_KUNIT_TEST_BUG_H_ */ diff --git a/sys/compat/linuxkpi/dummy/include/kunit/test-bug.h b/sys/compat/linuxkpi/dummy/include/kunit/test-bug.h deleted file mode 100644 index e69de29bb2d1..000000000000