<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/d73bd22ce1749d9cf75c27dc6a8eddf673e56b23">https://github.com/macports/macports-legacy-support/commit/d73bd22ce1749d9cf75c27dc6a8eddf673e56b23</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit d73bd22ce1749d9cf75c27dc6a8eddf673e56b23
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Thu May 29 19:37:05 2025 -0700
<span style='display:block; white-space:pre;color:#404040;'> test_clocks: Relax clock-step limit.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Sometimes there are enough scheduling delays (especially with
</span><span style='display:block; white-space:pre;color:#404040;'> multiple parallel VMs) to exceed the clock-step limit. This
</span><span style='display:block; white-space:pre;color:#404040;'> increases the limit to avoid most failures, though further
</span><span style='display:block; white-space:pre;color:#404040;'> investigation (and probably some rework) is warranted.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'> Passes on all platforms.
</span>---
test/test_clocks.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/test/test_clocks.c b/test/test_clocks.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 50ead0a..05fb1c7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/test/test_clocks.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/test/test_clocks.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -83,8 +83,8 @@ typedef int64_t sns_time_t;
</span> #define BILLION64 1000000000ULL
/* Parameters for collection sequence */
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#define MAX_STEP_NS 700000 /* Maximum delta not considered a step */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#define MAX_APPROX_STEP_NS 10000000 /* Maximum approximate-clock step */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define MAX_STEP_NS 1000000 /* Maximum delta not considered a step */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#define MAX_APPROX_STEP_NS 15000000 /* Maximum approximate-clock step */
</span> #define MAX_RETRIES 50 /* Maximum soft-error retries */
#define STD_SLEEP_US 1000 /* Standard sleep before collecting */
#define MAX_SLEEP_US 100000 /* Maximum sleep when retrying */
</pre><pre style='margin:0'>
</pre>