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

Method expect_touch

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

Source from the content-addressed store, hash-verified

663 wildcard)
664
665 def expect_touch(self, names):
666 d = self.unexpected_difference
667 for name in self.adjust_names(names):
668 # We need to check both touched and modified files. The reason is
669 # that:
670 # (1) Windows binaries such as obj, exe or dll files have slight
671 # differences even with identical inputs due to Windows PE
672 # format headers containing an internal timestamp.
673 # (2) Intel's compiler for Linux has the same behaviour.
674 filesets = [d.modified_files, d.touched_files]
675
676 while filesets:
677 try:
678 glob_remove(filesets[-1], name)
679 break
680 except ValueError:
681 filesets.pop()
682
683 if not filesets:
684 annotation("failure", "File %s not touched as expected" % name)
685 self.fail_test(1)
686
687 def ignore_touch(self, wildcard):
688 self.__ignore_elements(self.unexpected_difference.touched_files,

Callers 15

test_update_file_linkFunction · 0.95
test_check_target_buildsFunction · 0.95
test_chooseFunction · 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

Calls 4

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

Tested by 12

test_update_file_linkFunction · 0.76
test_check_target_buildsFunction · 0.76
test_chooseFunction · 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