linux-stable/tools/testing
Wolfram Sang 6c4e435b8d selftests: timers: clocksource-switch: fix passing errors from child
[ Upstream commit 4d8f52ac5f ]

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: 7290ce1423 ("selftests/timers: Add clocksource-switch test from timetest suite")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: John Stultz <jstultz@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-25 11:11:18 +02:00
..
fault-injection License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ktest tweewide: Fix most Shebang lines 2021-06-03 08:36:11 +02:00
nvdimm mm, devm_memremap_pages: mark devm_memremap_pages() EXPORT_SYMBOL_GPL 2019-01-13 10:01:02 +01:00
radix-tree idr: Fix idr_get_next race with idr_remove 2019-11-24 08:22:46 +01:00
selftests selftests: timers: clocksource-switch: fix passing errors from child 2022-08-25 11:11:18 +02:00