MCPcopy Create free account
hub / github.com/boostorg/build / wait_for_bar

Function wait_for_bar

v2/test/rebuilds.py:11–21  ·  view source on GitHub ↗

Wait to make the test system correctly recognize the 'bar' file as touched after the next build run. Without the wait, the next build run may rebuild the 'bar' file with the new and the old file modification timestamp too close to each other - which could, depending on the current

(t)

Source from the content-addressed store, hash-verified

9
10
11def wait_for_bar(t):
12 """
13 Wait to make the test system correctly recognize the 'bar' file as
14 touched after the next build run. Without the wait, the next build run may
15 rebuild the 'bar' file with the new and the old file modification timestamp
16 too close to each other - which could, depending on the currently supported
17 file modification timestamp resolution, be detected as 'no change' by the
18 testing system.
19
20 """
21 t.wait_for_time_change("bar", touch=False)
22
23
24t = BoostBuild.Tester(["-ffile.jam", "-d+3", "-d+12", "-d+13"], pass_d0=False,

Callers 1

rebuilds.pyFile · 0.85

Calls 1

wait_for_time_changeMethod · 0.80

Tested by

no test coverage detected