openposix/.../sighold/3-x: Fixes.

* Remove the SIGSEGV hack.

 If call to sighold causes crash
 the test would be marked as
 failed anyway. There is no need
 to overcomplicate the test with
 longjump from signal handler.

* Merge the 3-x testcases

 Again there is no need for
 the overcomplicated structure.
 Make the test just loop over
 invalid signal numbers. Instead
 of the shell helpers running
 the binary with different
 parameters.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
openposix/.../sighold: Small cleanup.

Remove useless casts from 1-1.c and 2-1.c.

Also reduce the sleep to 0.1 second.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
openposix/.../sigprocmask/17-*: Rewrite.

Rewrite the 17-* tests, they should test
for invalid how not invalid signals.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
openposix/.../sigprocmask: Cleanup.

Small cleanup & unify Test PASSED messages.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
openposix/.../sigaddset: Cleanup.

Split 1-core.c into 1-1.c and 1-2.c.
Remove 1-1.sh and 1-2.sh.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
openposix/.../sigaddset/4-*: Cleanup.

Merge 4-* into 4-1.c

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
openposix/.../sigaddset: Cleanup.

Make use of PTS_ return values, unify output, etc.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
openposix/.../sigdelset/1-*: Cleanup.

Split 1-core.c into 1-1.c and 1-2.c.
Remove 1-1.sh and 1-2.sh.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
pthread_once/1-1.c : cleanup & error checks

Fix the prototype and remove the (void *) casts.

Add error checks to:
    Make sure this case not slip into one situation that
    the first pthread_once fails, and the second successes,
    then the case passes with bypassing its assertion.

    Give more detailed and exact execute result.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>