| 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, |