====================================================================== BUILD LOG: fail/quick/bad-context ====================================================================== Verdict: xfail Exit code: 1 Kernel: 6.19.0+ Toolchain: Compiler: gcc (GCC) 14.3.1 20251022 (Red Hat 14.3.1-4) Linker: GNU ld version 2.41-63.el10 Assembler: GNU assembler version 2.41-63.el10 ====================================================================== FULL BUILD OUTPUT ====================================================================== --- klp-build stdout --- Validating patch(es) checking file fs/proc/version.c Hunk #1 FAILED at 10. 1 out of 1 hunk FAILED --- klp-build stderr --- error: klp-build: /root/linux/tools/testing/selftests/klp-build/tests/current-tree/fail/quick/bad-context/bad-context.patch did not apply --- diff.log --- (file not found: diff/diff.log) ====================================================================== BUILD VERIFICATION ====================================================================== exit code non-zero (expected failure): OK stderr matched pattern 'did not apply': OK ====================================================================== TEST PATCH(ES) ====================================================================== --- Patch: bad-context.patch --- From: Test Author Subject: [PATCH] proc/version: add debug message Bad context test case. This patch has intentionally incorrect context lines to verify klp-build rejects patches that don't apply cleanly. diff --git a/fs/proc/version.c b/fs/proc/version.c --- a/fs/proc/version.c +++ b/fs/proc/version.c @@ -10,7 +10,8 @@ static int version_proc_show(struct seq_file *m, void *v) { - THIS LINE DOES NOT MATCH THE REAL FILE + pr_info("klp-build-test: should fail\n"); + THIS LINE ALSO DOES NOT MATCH seq_printf(m, linux_proc_banner, utsname()->sysname, utsname()->release,