Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79737 - trunk/tools/build/v2/test
From: jurko.gospodnetic_at_[hidden]
Date: 2012-07-25 03:15:07


Author: jurko
Date: 2012-07-25 03:15:06 EDT (Wed, 25 Jul 2012)
New Revision: 79737
URL: http://svn.boost.org/trac/boost/changeset/79737

Log:
Corrected the internal Boost Build rebuilds.py test to avoid incorrectly detected failures when a file to be rebuilt ('bar') gets rebuilt too quickly in one of the test cases (used to fail if the original file and the rebuilt file did not have file modification timestamps with the same second).
Text files modified:
   trunk/tools/build/v2/test/rebuilds.py | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/test/rebuilds.py
==============================================================================
--- trunk/tools/build/v2/test/rebuilds.py (original)
+++ trunk/tools/build/v2/test/rebuilds.py 2012-07-25 03:15:06 EDT (Wed, 25 Jul 2012)
@@ -44,8 +44,14 @@
 t.expect_nothing_more()
 
 t.touch("bar")
+# The following wait is needed to make the test system correctly recognize the
+# 'bar' file as touched by the next build run, even if it uses 1 second file
+# modification timestamp resolution and the build system does the rebuild fast
+# enough that the original and the touched files have their file modification
+# timestamps within the same second.
+t.wait_for_time_change()
 t.run_build_system()
-t.expect_touch(["foo", "aux1", "aux2"])
+t.expect_touch(["foo", "bar", "aux1", "aux2"])
 t.expect_nothing_more()
 
 t.cleanup()


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