summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/ChangeLog4
-rw-r--r--tests/once4.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 1f0ad0d..43ba41b 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,6 +1,8 @@
2005-04-11 Ross Johnson <rpj@callisto.canberra.edu.au>
- * once4.c: New test; tries to test priority adjustments.
+ * once4.c: New test; tries to test priority adjustments;
+ set priority class to realtime so that any failures can be
+ seen.
2005-04-06 Ross Johnson <rpj@callisto.canberra.edu.au>
diff --git a/tests/once4.c b/tests/once4.c
index 980c9fe..69e9384 100644
--- a/tests/once4.c
+++ b/tests/once4.c
@@ -149,6 +149,11 @@ main()
printf("once thrd prio error\n");
#endif
+ /*
+ * Set the priority class to realtime - otherwise normal
+ * Windows random priority boosting will obscure any problems.
+ */
+ SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS);
/* Set main thread to lower prio than threads */
SetThreadPriority(GetCurrentThread(), -2);