public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Add debug
@ 2023-07-09 16:02 Jon Turney
0 siblings, 0 replies; only message in thread
From: Jon Turney @ 2023-07-09 16:02 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=bae458fb29414a8c02962b0aa2e4b3fd6f8c2e3a
commit bae458fb29414a8c02962b0aa2e4b3fd6f8c2e3a
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Sat Jul 8 22:00:31 2023 +0100
Add debug
Diff:
---
winsup/testsuite/winsup.api/pthread/inherit1.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/winsup/testsuite/winsup.api/pthread/inherit1.c b/winsup/testsuite/winsup.api/pthread/inherit1.c
index e77483e89..9c55662d8 100644
--- a/winsup/testsuite/winsup.api/pthread/inherit1.c
+++ b/winsup/testsuite/winsup.api/pthread/inherit1.c
@@ -55,6 +55,8 @@ void * func(void * arg)
// pthread_getschedparam() after pthread_setschedparam().
int doable_pri(int pri)
{
+ printf("process priority class %x\n", GetPriorityClass(GetCurrentProcess()));
+
return (pri == 2) || (pri == 12) || (pri == 14) || (pri == 16) || (pri == 18)
|| (pri == 20) || (pri == 30);
}
@@ -90,6 +92,8 @@ main()
assert(pthread_setschedparam(mainThread, SCHED_FIFO, &mainParam) == 0);
assert(pthread_getschedparam(mainThread, &policy, &mainParam) == 0);
assert(policy == SCHED_FIFO);
+
+ printf("%d %d\n", mainParam.sched_priority, prio);
if (doable_pri(prio))
assert(mainParam.sched_priority == prio);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-09 16:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-09 16:02 [newlib-cygwin] Add debug Jon Turney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).