diff options
author | Greg Parker <gparker@apple.com> | 2017-01-24 08:58:20 +0000 |
---|---|---|
committer | Greg Parker <gparker@apple.com> | 2017-01-24 08:58:20 +0000 |
commit | d972882f06865c7ab6d97d6346d01cace016c6ec (patch) | |
tree | bc1e06590f5044d1b7ae9dfa094b5b7165a661fc /llvm/utils/lit/tests/unit/TestRunner.py | |
parent | 9f8bb384af234de7901a3335acbf02d6d4591e20 (diff) | |
download | bcm5719-llvm-d972882f06865c7ab6d97d6346d01cace016c6ec.tar.gz bcm5719-llvm-d972882f06865c7ab6d97d6346d01cace016c6ec.zip |
Revert "[lit] Allow boolean expressions in REQUIRES and XFAIL and UNSUPPORTED"
This change needs to be better-coordinated with libc++.
llvm-svn: 292900
Diffstat (limited to 'llvm/utils/lit/tests/unit/TestRunner.py')
-rw-r--r-- | llvm/utils/lit/tests/unit/TestRunner.py | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/llvm/utils/lit/tests/unit/TestRunner.py b/llvm/utils/lit/tests/unit/TestRunner.py index d8b00649c55..ff11834fed7 100644 --- a/llvm/utils/lit/tests/unit/TestRunner.py +++ b/llvm/utils/lit/tests/unit/TestRunner.py @@ -108,71 +108,6 @@ class TestIntegratedTestKeywordParser(unittest.TestCase): value = custom_parser.getValue() self.assertItemsEqual(value, ['a', 'b', 'c']) - def test_bad_keywords(self): - def custom_parse(line_number, line, output): - return output - - try: - IntegratedTestKeywordParser("TAG_NO_SUFFIX", ParserKind.TAG), - self.fail("TAG_NO_SUFFIX failed to raise an exception") - except ValueError as e: - pass - except BaseException as e: - self.fail("TAG_NO_SUFFIX raised the wrong exception: %r" % e) - - try: - IntegratedTestKeywordParser("TAG_WITH_COLON:", ParserKind.TAG), - self.fail("TAG_WITH_COLON: failed to raise an exception") - except ValueError as e: - pass - except BaseException as e: - self.fail("TAG_WITH_COLON: raised the wrong exception: %r" % e) - - try: - IntegratedTestKeywordParser("LIST_WITH_DOT.", ParserKind.LIST), - self.fail("LIST_WITH_DOT. failed to raise an exception") - except ValueError as e: - pass - except BaseException as e: - self.fail("LIST_WITH_DOT. raised the wrong exception: %r" % e) - - try: - IntegratedTestKeywordParser("CUSTOM_NO_SUFFIX", - ParserKind.CUSTOM, custom_parse), - self.fail("CUSTOM_NO_SUFFIX failed to raise an exception") - except ValueError as e: - pass - except BaseException as e: - self.fail("CUSTOM_NO_SUFFIX raised the wrong exception: %r" % e) - - # Both '.' and ':' are allowed for CUSTOM keywords. - try: - IntegratedTestKeywordParser("CUSTOM_WITH_DOT.", - ParserKind.CUSTOM, custom_parse), - except BaseException as e: - self.fail("CUSTOM_WITH_DOT. raised an exception: %r" % e) - try: - IntegratedTestKeywordParser("CUSTOM_WITH_COLON:", - ParserKind.CUSTOM, custom_parse), - except BaseException as e: - self.fail("CUSTOM_WITH_COLON: raised an exception: %r" % e) - - try: - IntegratedTestKeywordParser("CUSTOM_NO_PARSER:", - ParserKind.CUSTOM), - self.fail("CUSTOM_NO_PARSER: failed to raise an exception") - except ValueError as e: - pass - except BaseException as e: - self.fail("CUSTOM_NO_PARSER: raised the wrong exception: %r" % e) - - # REQUIRES-ANY: has a built-in parser that generates an error, - # but it may be overridden by a custom parser. - try: - IntegratedTestKeywordParser("REQUIRES-ANY:", - ParserKind.CUSTOM, custom_parse), - except BaseException as e: - self.fail("REQUIRES-ANY: raised an exception: %r" % e) if __name__ == '__main__': TestIntegratedTestKeywordParser.load_keyword_parser_lit_tests() |