aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-08-15 18:27:03 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2026-08-15 18:27:03 +0000
commitd77271ce7a65713d00d19a1617d6ccc5783388b7 (patch)
tree5ebbc2fc68033f35f6daf7a0e180140c5dd07016
parent0fbdaf0c9aacab6bf7115e8cee7ee3a9728f2c9d (diff)
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
-rw-r--r--sys/compat/linuxkpi/common/include/kunit/test-bug.h12
-rw-r--r--sys/compat/linuxkpi/dummy/include/kunit/test-bug.h0
2 files changed, 12 insertions, 0 deletions
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
--- a/sys/compat/linuxkpi/dummy/include/kunit/test-bug.h
+++ /dev/null