2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

* BoostBuild.py (wait_for_time_change): Wait

for more serious time change, in order to
        fix sporadic dependency_test failures.


[SVN r39195]
This commit is contained in:
Vladimir Prus
2007-09-11 19:17:49 +00:00
parent ef24b573cf
commit 47883c1710

View File

@@ -754,7 +754,11 @@ class Tester(TestCmd.TestCmd):
def wait_for_time_change(self):
while 1:
f = time.time();
if math.floor(f) < math.floor(self.last_build_time) + 1:
# In fact, I'm not sure why "+ 2" as opposed to "+ 1" is
# needed but empirically, "+ 1" sometimes causes 'touch'
# and other functions not to bump file time enough for
# rebuild to happen.
if math.floor(f) < math.floor(self.last_build_time) + 2:
time.sleep(0.1)
else:
break