Commit f6b6a27f authored by Wolfram Sang's avatar Wolfram Sang Committed by Zheng Zengkai
Browse files

selftests: timers: clocksource-switch: fix passing errors from child

stable inclusion
from stable-v5.10.137
commit 990ca39e78cf4005168d15547a8236b835ed0597
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=990ca39e78cf4005168d15547a8236b835ed0597



--------------------------------

[ Upstream commit 4d8f52ac ]

The return value from system() is a waitpid-style integer. Do not return
it directly because with the implicit masking in exit() it will always
return 0. Access it with appropriate macros to really pass on errors.

Fixes: 7290ce14 ("selftests/timers: Add clocksource-switch test from timetest suite")
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: default avatarJohn Stultz <jstultz@google.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent 48f0d1cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment