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