Minor change for the @expectedFailureClang logic. For the non-clang test failure, re-raise

the exception to get more stack trace information.

llvm-svn: 138021
This commit is contained in:
Johnny Chen 2011-08-19 01:17:09 +00:00
parent 02b6676d2b
commit b5825b82ad

View File

@ -379,11 +379,11 @@ def expectedFailureClang(func):
compiler = self.getCompiler()
try:
func(*args, **kwargs)
except Exception, e:
except Exception:
if "clang" in compiler:
raise case._ExpectedFailure(sys.exc_info())
else:
raise e
raise
if "clang" in compiler:
raise case._UnexpectedSuccess