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

Method expect_touch

test/BoostBuild.py:638–658  ·  view source on GitHub ↗
(self, names)

Source from the content-addressed store, hash-verified

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

Callers 15

test_update_file_linkFunction · 0.95
test_basicFunction · 0.95
test_default_orderFunction · 0.95
test_default_order_mixedFunction · 0.95
test_basicFunction · 0.95
test_order1Function · 0.95
test_order2Function · 0.95
test_order_graphFunction · 0.95
rescan_header.pyFile · 0.80
project_test3.pyFile · 0.80

Calls 4

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

Tested by 10

test_update_file_linkFunction · 0.76
test_basicFunction · 0.76
test_default_orderFunction · 0.76
test_default_order_mixedFunction · 0.76
test_basicFunction · 0.76
test_order1Function · 0.76
test_order2Function · 0.76
test_order_graphFunction · 0.76