]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: livepatch: set LC_ALL=C to fix locale-dependent test failure
authorQiang Ma <maqianga@uniontech.com>
Wed, 27 May 2026 09:59:29 +0000 (17:59 +0800)
committerPetr Mladek <pmladek@suse.com>
Wed, 3 Jun 2026 12:59:29 +0000 (14:59 +0200)
commited8f317671d9a6bd1daf2f0cb152e126eae2bf10
tree23208a0edbf273db46d5ee6fdc652f6058c779d8
parent8f7168335cb2e438668c5d94eea76621c9a10edd
selftests: livepatch: set LC_ALL=C to fix locale-dependent test failure

When executing the command
"make -C tools/testing/selftests TARGETS=livepatch run_tests",
the following error message was reported.

TEST: livepatch interaction with ftrace_enabled sysctl ... not ok
...
livepatch: sysctlo
: setting key "kernel.ftrace_enabled": Device or resource busy
livepatch: sysctl: setting key "kernel.ftrace_enabled": 设备或资源忙
...
ERROR: livepatch kselftest(s) failed
not ok 5 selftests: livepatch: test-ftrace.sh # exit=1

To fix it, set LC_ALL=C.

Signed-off-by: Qiang Ma <maqianga@uniontech.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Petr Mladek <pmladek@suse.com>
Link: https://patch.msgid.link/20260527095929.1504032-1-maqianga@uniontech.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
tools/testing/selftests/livepatch/functions.sh