Fix test262 harness to handle async negative tests properly (#4526)

JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác csaba.osztrogonac@h-lab.eu
This commit is contained in:
Csaba Osztrogonác
2021-01-22 15:09:16 +01:00
committed by GitHub
parent 8ba0d1b6ee
commit 9900cacb15
2 changed files with 3 additions and 273 deletions
+3 -2
View File
@@ -468,10 +468,11 @@ class TestResult(object):
return 'Test262:AsyncTestComplete' not in self.stdout
def has_unexpected_outcome(self):
if self.case.is_negative():
return not (self.has_failed() and self.case.negative_match(self.get_error_output()))
if self.case.is_async_test():
return self.async_has_failed() or self.has_failed()
elif self.case.is_negative():
return not (self.has_failed() and self.case.negative_match(self.get_error_output()))
return self.has_failed()