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