hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/timers/clocksource-switch.c
....@@ -110,10 +110,10 @@
110110
111111 sprintf(buf, "./inconsistency-check -t %i", secs);
112112 ret = system(buf);
113
- if (ret)
114
- return ret;
113
+ if (WIFEXITED(ret) && WEXITSTATUS(ret))
114
+ return WEXITSTATUS(ret);
115115 ret = system("./nanosleep");
116
- return ret;
116
+ return WIFEXITED(ret) ? WEXITSTATUS(ret) : 0;
117117 }
118118
119119