[LTP] [PATCH v3] posix/conformance/interfaces/sem_timedwait/2-1: Fix test
Cyril Hrubis
chrubis@suse.cz
Wed Aug 28 15:33:05 CEST 2024
Hi!
Pushed with a minor change, thanks.
> - if (!WEXITSTATUS(i)) {
> + if (WEXITSTATUS(i)) {
> return PTS_FAIL;
> }
The return value from WEXITSTATUS() is only valid if WIFEXITED() is true
so I've changed this part as:
@@ -71,7 +71,7 @@ int main(void)
return PTS_UNRESOLVED;
}
- if (WEXITSTATUS(i)) {
+ if (!WIFEXITED(i) || WEXITSTATUS(i)) {
return PTS_FAIL;
}
puts("TEST PASSED");
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list