Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2007-09-11 15:17:51


Author: vladimir_prus
Date: 2007-09-11 15:17:49 EDT (Tue, 11 Sep 2007)
New Revision: 39195
URL: http://svn.boost.org/trac/boost/changeset/39195

Log:
        * BoostBuild.py (wait_for_time_change): Wait
        for more serious time change, in order to
        fix sporadic dependency_test failures.

Text files modified:
   trunk/tools/build/v2/test/BoostBuild.py | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/test/BoostBuild.py
==============================================================================
--- trunk/tools/build/v2/test/BoostBuild.py (original)
+++ trunk/tools/build/v2/test/BoostBuild.py 2007-09-11 15:17:49 EDT (Tue, 11 Sep 2007)
@@ -754,7 +754,11 @@
     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


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk