mirror of git://sourceware.org/git/glibc.git
pthread_getcpuclockid: Add descriptive comment to smoke test
Add a descriptive comment to the tst-pthread-cpuclockid-invalid test and also drop pthread_getcpuclockid from the TODO-testing list since it now has full coverage. Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
parent
82a3991a84
commit
19a198f058
|
|
@ -10,10 +10,6 @@ pthread_attr_[sg]etstack
|
||||||
|
|
||||||
some more tests needed
|
some more tests needed
|
||||||
|
|
||||||
pthread_getcpuclockid
|
|
||||||
|
|
||||||
check that value is reset -> rt subdir
|
|
||||||
|
|
||||||
pthread_getschedparam
|
pthread_getschedparam
|
||||||
pthread_setschedparam
|
pthread_setschedparam
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
/* Smoke test to verify that pthread_getcpuclockid fails with ESRCH when the
|
/* pthread_getcpuclockid should fail with ESRCH when the thread exits.
|
||||||
thread in question has exited.
|
|
||||||
Copyright the GNU Toolchain Authors.
|
Copyright the GNU Toolchain Authors.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
|
|
@ -17,6 +16,12 @@
|
||||||
License along with the GNU C Library; if not, see
|
License along with the GNU C Library; if not, see
|
||||||
<https://www.gnu.org/licenses/>. */
|
<https://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
/* The input thread descriptor to pthread_getcpuclockid needs to be valid when
|
||||||
|
the function is called. For the purposes of this test, this means that the
|
||||||
|
thread should not be detached, have exited, but not joined. This should be
|
||||||
|
good enough to complete coverage for pthread_getcpuclockid alongside
|
||||||
|
tst-clock2. */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue