mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
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:
parent
02b6676d2b
commit
b5825b82ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user