]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
pthread_getcpuclockid: Add descriptive comment to smoke test
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 28 Nov 2024 11:30:40 +0000 (06:30 -0500)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 28 Nov 2024 18:19:52 +0000 (13:19 -0500)
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>
nptl/TODO-testing
nptl/tst-pthread-getcpuclockid-invalid.c

index e076e5624f1cfbaa8bec171d3b5f908a5d7cee1a..f50d2ceb51b247c319d482b4b33004d64eaef5dd 100644 (file)
@@ -10,10 +10,6 @@ pthread_attr_[sg]etstack
 
   some more tests needed
 
-pthread_getcpuclockid
-
-  check that value is reset -> rt subdir
-
 pthread_getschedparam
 pthread_setschedparam
 
index e88a56342767a83e3c0e5d5a81906ecde6ad8172..7ac46acad8fe0fd77124dd2df56e210f1797572f 100644 (file)
@@ -1,5 +1,4 @@
-/* Smoke test to verify that pthread_getcpuclockid fails with ESRCH when the
-   thread in question has exited.
+/* pthread_getcpuclockid should fail with ESRCH when the thread exits.
    Copyright the GNU Toolchain Authors.
    This file is part of the GNU C Library.
 
    License along with the GNU C Library; if not, see
    <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 <pthread.h>
 #include <sched.h>