Show More
@@ -1770,7 +1770,9 class TTest(Test): | |||
|
1770 | 1770 | if l.startswith(b'#require'): |
|
1771 | 1771 | lsplit = l.split() |
|
1772 | 1772 | if len(lsplit) < 2 or lsplit[0] != b'#require': |
|
1773 |
after.setdefault(pos, []).append( |
|
|
1773 | after.setdefault(pos, []).append( | |
|
1774 | b' !!! invalid #require\n' | |
|
1775 | ) | |
|
1774 | 1776 | if not skipping: |
|
1775 | 1777 | haveresult, message = self._hghave(lsplit[1:]) |
|
1776 | 1778 | if not haveresult: |
@@ -1780,19 +1782,19 class TTest(Test): | |||
|
1780 | 1782 | elif l.startswith(b'#if'): |
|
1781 | 1783 | lsplit = l.split() |
|
1782 | 1784 | if len(lsplit) < 2 or lsplit[0] != b'#if': |
|
1783 | after.setdefault(pos, []).append(' !!! invalid #if\n') | |
|
1785 | after.setdefault(pos, []).append(b' !!! invalid #if\n') | |
|
1784 | 1786 | if skipping is not None: |
|
1785 | after.setdefault(pos, []).append(' !!! nested #if\n') | |
|
1787 | after.setdefault(pos, []).append(b' !!! nested #if\n') | |
|
1786 | 1788 | skipping = not self._iftest(lsplit[1:]) |
|
1787 | 1789 | after.setdefault(pos, []).append(l) |
|
1788 | 1790 | elif l.startswith(b'#else'): |
|
1789 | 1791 | if skipping is None: |
|
1790 | after.setdefault(pos, []).append(' !!! missing #if\n') | |
|
1792 | after.setdefault(pos, []).append(b' !!! missing #if\n') | |
|
1791 | 1793 | skipping = not skipping |
|
1792 | 1794 | after.setdefault(pos, []).append(l) |
|
1793 | 1795 | elif l.startswith(b'#endif'): |
|
1794 | 1796 | if skipping is None: |
|
1795 | after.setdefault(pos, []).append(' !!! missing #if\n') | |
|
1797 | after.setdefault(pos, []).append(b' !!! missing #if\n') | |
|
1796 | 1798 | skipping = None |
|
1797 | 1799 | after.setdefault(pos, []).append(l) |
|
1798 | 1800 | elif skipping: |
@@ -1841,7 +1843,7 class TTest(Test): | |||
|
1841 | 1843 | if inpython: |
|
1842 | 1844 | script.append(b'EOF\n') |
|
1843 | 1845 | if skipping is not None: |
|
1844 | after.setdefault(pos, []).append(' !!! missing #endif\n') | |
|
1846 | after.setdefault(pos, []).append(b' !!! missing #endif\n') | |
|
1845 | 1847 | addsalt(n + 1, False) |
|
1846 | 1848 | # Need to end any current per-command trace |
|
1847 | 1849 | if activetrace: |
General Comments 0
You need to be logged in to leave comments.
Login now