From 5b9a35a6d54abd98254ca5d493b72c5a730238e4 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Fri, 28 Aug 2015 22:17:28 +0000 Subject: [PATCH] lit: Match UNSUPPORTED against target triple as we do for XFAIL. llvm-svn: 246343 --- utils/lit/lit/TestRunner.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py index 610d442e756..1fa43b394f7 100644 --- a/utils/lit/lit/TestRunner.py +++ b/utils/lit/lit/TestRunner.py @@ -544,6 +544,13 @@ def parseIntegratedTestScript(test, normalize_slashes=False, return lit.Test.Result(Test.UNSUPPORTED, "Test is unsupported with the following features: %s" % msg) + unsupported_targets = [f for f in unsupported + if f in test.suite.config.target_triple] + if unsupported_targets: + return lit.Test.Result(Test.UNSUPPORTED, + "Test is unsupported with the following triple: %s" % ( + test.suite.config.target_triple,)) + if test.config.limit_to_features: # Check that we have one of the limit_to_features features in requires. limit_to_features_tests = [f for f in test.config.limit_to_features