summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/unit
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-01-24 16:17:04 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-01-24 16:17:04 +0000
commit9111cc217d8648884d8b2cc1250c93275d475fba (patch)
tree2230cea6ca79528f4bf1dcf412d97e6cc29da01d /llvm/utils/lit/tests/unit
parent893d2119ee6bb849b9976f9725516e278e9a96cd (diff)
downloadbcm5719-llvm-9111cc217d8648884d8b2cc1250c93275d475fba.tar.gz
bcm5719-llvm-9111cc217d8648884d8b2cc1250c93275d475fba.zip
Revert "r292904 - [lit] Allow boolean expressions in REQUIRES and XFAIL
and UNSUPPORTED" After r292904 llvm-lit fails to emit the test results in the XML format for Apple's internal buildbots. rdar://30164800 llvm-svn: 292942
Diffstat (limited to 'llvm/utils/lit/tests/unit')
-rw-r--r--llvm/utils/lit/tests/unit/TestRunner.py57
1 files changed, 0 insertions, 57 deletions
diff --git a/llvm/utils/lit/tests/unit/TestRunner.py b/llvm/utils/lit/tests/unit/TestRunner.py
index ed0affa2832..ff11834fed7 100644
--- a/llvm/utils/lit/tests/unit/TestRunner.py
+++ b/llvm/utils/lit/tests/unit/TestRunner.py
@@ -108,63 +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)
if __name__ == '__main__':
TestIntegratedTestKeywordParser.load_keyword_parser_lit_tests()
OpenPOWER on IntegriCloud