Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'linux-kselftest-kunit-fixes-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest

Pull KUnit fixes from Shuah Khan:
"Two fixes to test build and a fix for incorrect taint reason reporting"

* tag 'linux-kselftest-kunit-fixes-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
tools: Add new "test" taint to kernel-chktaint
kunit: fix Kconfig for build-in tests USB4 and Nitro Enclaves
kunit: fix assert_type for comparison macros

+14 -6
+1 -2
drivers/thunderbolt/Kconfig
··· 29 29 30 30 config USB4_KUNIT_TEST 31 31 bool "KUnit tests" if !KUNIT_ALL_TESTS 32 - depends on (USB4=m || KUNIT=y) 33 - depends on KUNIT 32 + depends on USB4 && KUNIT=y 34 33 default KUNIT_ALL_TESTS 35 34 36 35 config USB4_DMA_TEST
+1 -1
drivers/virt/nitro_enclaves/Kconfig
··· 17 17 18 18 config NITRO_ENCLAVES_MISC_DEV_TEST 19 19 bool "Tests for the misc device functionality of the Nitro Enclaves" if !KUNIT_ALL_TESTS 20 - depends on NITRO_ENCLAVES && KUNIT 20 + depends on NITRO_ENCLAVES && KUNIT=y 21 21 default KUNIT_ALL_TESTS 22 22 help 23 23 Enable KUnit tests for the misc device functionality of the Nitro
+3 -3
include/kunit/test.h
··· 826 826 827 827 #define KUNIT_EXPECT_LE_MSG(test, left, right, fmt, ...) \ 828 828 KUNIT_BINARY_INT_ASSERTION(test, \ 829 - KUNIT_ASSERTION, \ 829 + KUNIT_EXPECTATION, \ 830 830 left, <=, right, \ 831 831 fmt, \ 832 832 ##__VA_ARGS__) ··· 1116 1116 1117 1117 #define KUNIT_ASSERT_LT_MSG(test, left, right, fmt, ...) \ 1118 1118 KUNIT_BINARY_INT_ASSERTION(test, \ 1119 - KUNIT_EXPECTATION, \ 1119 + KUNIT_ASSERTION, \ 1120 1120 left, <, right, \ 1121 1121 fmt, \ 1122 1122 ##__VA_ARGS__) ··· 1157 1157 1158 1158 #define KUNIT_ASSERT_GT_MSG(test, left, right, fmt, ...) \ 1159 1159 KUNIT_BINARY_INT_ASSERTION(test, \ 1160 - KUNIT_EXPECTATION, \ 1160 + KUNIT_ASSERTION, \ 1161 1161 left, >, right, \ 1162 1162 fmt, \ 1163 1163 ##__VA_ARGS__)
+9
tools/debugging/kernel-chktaint
··· 187 187 echo " * auxiliary taint, defined for and used by distros (#16)" 188 188 189 189 fi 190 + 190 191 T=`expr $T / 2` 191 192 if [ `expr $T % 2` -eq 0 ]; then 192 193 addout " " 193 194 else 194 195 addout "T" 195 196 echo " * kernel was built with the struct randomization plugin (#17)" 197 + fi 198 + 199 + T=`expr $T / 2` 200 + if [ `expr $T % 2` -eq 0 ]; then 201 + addout " " 202 + else 203 + addout "N" 204 + echo " * an in-kernel test (such as a KUnit test) has been run (#18)" 196 205 fi 197 206 198 207 echo "For a more detailed explanation of the various taint flags see"