From 47883c1710e779bb50db11bcbe742a15d2e954eb Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 11 Sep 2007 19:17:49 +0000 Subject: [PATCH] * BoostBuild.py (wait_for_time_change): Wait for more serious time change, in order to fix sporadic dependency_test failures. [SVN r39195] --- v2/test/BoostBuild.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v2/test/BoostBuild.py b/v2/test/BoostBuild.py index a58a2ebbc..f5fa4c946 100644 --- a/v2/test/BoostBuild.py +++ b/v2/test/BoostBuild.py @@ -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