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

Method expect_touch

v2/test/BoostBuild.py:636–656  ·  view source on GitHub ↗
(self, names)

Source from the content-addressed store, hash-verified

634 wildcard)
635
636 def expect_touch(self, names):
637 d = self.unexpected_difference
638 for name in self.adjust_names(names):
639 # We need to check both touched and modified files. The reason is
640 # that:
641 # (1) Windows binaries such as obj, exe or dll files have slight
642 # differences even with identical inputs due to Windows PE
643 # format headers containing an internal timestamp.
644 # (2) Intel's compiler for Linux has the same behaviour.
645 filesets = [d.modified_files, d.touched_files]
646
647 while filesets:
648 try:
649 glob_remove(filesets[-1], name)
650 break
651 except ValueError:
652 filesets.pop()
653
654 if not filesets:
655 annotation("failure", "File %s not touched as expected" % name)
656 self.fail_test(1)
657
658 def ignore_touch(self, wildcard):
659 self.__ignore_elements(self.unexpected_difference.touched_files,

Callers 9

test_basicFunction · 0.95
rescan_header.pyFile · 0.80
project_test3.pyFile · 0.80
resolution.pyFile · 0.80
rebuilds.pyFile · 0.80
ordered_include.pyFile · 0.80
test2.pyFile · 0.80

Calls 4

adjust_namesMethod · 0.95
fail_testMethod · 0.95
glob_removeFunction · 0.85
annotationFunction · 0.85