public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [RFC PATCH 0/1] Fix return value checks for posix apis
@ 2019-05-20  4:17 Sandeep Patil
  2019-05-20  4:17 ` [LTP] [RFC PATCH 1/1] open_posix_testsuite/pthread_sigmask: fix return value checks Sandeep Patil
  2019-05-20  9:49 ` [LTP] [RFC PATCH 0/1] Fix return value checks for posix apis Cyril Hrubis
  0 siblings, 2 replies; 8+ messages in thread
From: Sandeep Patil @ 2019-05-20  4:17 UTC (permalink / raw)
  To: ltp

This is an RFC patch to demonstrate that most of the pthread_* calls
in the open_posix_testsuite seem to be doing the return value checks
incorrectly. Most posix_* apis return positive errno on failure and 0 on
success.

PATCH 1/1 demonstrates the fixes needed for pthread_sigmask/6-1 for
example. This pattern is fairly widespread in open_posix_testsuite.

After going through the documentation in the project, I wasn't sure if I
tested this correctly. After building, I tried the following

$ cd testcases/open_posix_testsuite
$ ./bin/run_tesit.sh conformance/interfaces/pthread_sigmask pthread_sigmask_6-1.run-test

...and that keeps running into test being skipped due to missing file.
(I do have pthread_sigmask_6-1.run-test in place).

So, consider this build tested only for now. I'd love to know how we can
test this and if we are still using the testsuite, then I am happy to
fix rest of the places where its broken.

Sandeep Patil (1):
  open_posix_testsuite/pthread_sigmask: fix return value checks

 .../interfaces/pthread_sigmask/6-1.c          | 69 +++++++++++--------
 1 file changed, 40 insertions(+), 29 deletions(-)

-- 
2.21.0.1020.gf2820cf01a-goog


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-05-21 11:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-20  4:17 [LTP] [RFC PATCH 0/1] Fix return value checks for posix apis Sandeep Patil
2019-05-20  4:17 ` [LTP] [RFC PATCH 1/1] open_posix_testsuite/pthread_sigmask: fix return value checks Sandeep Patil
2019-05-20  9:53   ` Cyril Hrubis
2019-05-21  4:40     ` Sandeep Patil
2019-05-21 11:46       ` Cyril Hrubis
2019-05-20  9:49 ` [LTP] [RFC PATCH 0/1] Fix return value checks for posix apis Cyril Hrubis
2019-05-21  4:41   ` Sandeep Patil
2019-05-21 11:48     ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox