mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 04:54:44 +02:00
additional fixes suggested by @anba
This commit is contained in:
parent
e2b675f443
commit
89d71f56b2
@ -209,10 +209,15 @@ class TestResult(object):
|
|||||||
if self.case.IsAsyncTest():
|
if self.case.IsAsyncTest():
|
||||||
return self.AsyncHasFailed() or self.HasFailed()
|
return self.AsyncHasFailed() or self.HasFailed()
|
||||||
elif self.case.IsNegative():
|
elif self.case.IsNegative():
|
||||||
return not (self.HasFailed() and self.case.NegativeMatch(self.stderr))
|
return not (self.HasFailed() and self.case.NegativeMatch(self.GetErrorOutput()))
|
||||||
else:
|
else:
|
||||||
return self.HasFailed()
|
return self.HasFailed()
|
||||||
|
|
||||||
|
def GetErrorOutput(self):
|
||||||
|
if len(self.stderr) != 0:
|
||||||
|
return self.stderr
|
||||||
|
return self.stdout
|
||||||
|
|
||||||
|
|
||||||
class TestCase(object):
|
class TestCase(object):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user