<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/d9f584bb5165eee70eec84ad5c2ac0c7c6f358fd">https://github.com/macports/macports-base/commit/d9f584bb5165eee70eec84ad5c2ac0c7c6f358fd</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit d9f584bb5165eee70eec84ad5c2ac0c7c6f358fd
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sun Feb 25 21:40:30 2024 +1100
<span style='display:block; white-space:pre;color:#404040;'> fix test
</span>---
src/macports1.0/tests/macports.test | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/tests/macports.test b/src/macports1.0/tests/macports.test
</span><span style='display:block; white-space:pre;color:#808080;'>index e8e8e8d07..feb5a9b1b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/tests/macports.test
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/tests/macports.test
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -494,8 +494,8 @@ test mportshutdown {
</span> dict set macports::ping_cache host1 [list test $time]
dict set macports::ping_cache host2 [list test $time_exp]
<span style='display:block; white-space:pre;background:#ffe0e0;'>- file mkdir $macports::portdbpath
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- close [open $macports::portdbpath/pingtimes w+]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file mkdir ${macports::portdbpath}/cache
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ close [open ${macports::portdbpath}/cache/pingtimes w+]
</span>
} -body {
if {[mportshutdown] ne ""} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -504,7 +504,7 @@ test mportshutdown {
</span>
set res ""
append res "host1 \{test " $time "\}"
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set fd [open $macports::portdbpath/pingtimes r]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set fd [open ${macports::portdbpath}/cache/pingtimes r]
</span>
if {[gets $fd] ne $res} {
return "FAIL: wrong value saved"
</pre><pre style='margin:0'>
</pre>