public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jon Turney <jturney@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Add debug
Date: Sun,  9 Jul 2023 16:02:09 +0000 (GMT)	[thread overview]
Message-ID: <20230709160209.E31F93857730@sourceware.org> (raw)

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);

                 reply	other threads:[~2023-07-09 16:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230709160209.E31F93857730@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).