hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
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