Index: test/test262-es6/testcfg.py |
diff --git a/test/test262-es6/testcfg.py b/test/test262-es6/testcfg.py |
index e5fb22565fc80571704479591e6fdfa13271797a..cc0dc06bbc488745a9c74e01f2188be7708d7609 100644 |
--- a/test/test262-es6/testcfg.py |
+++ b/test/test262-es6/testcfg.py |
@@ -33,6 +33,7 @@ import sys |
import tarfile |
import imp |
+from testrunner.local import statusfile |
from testrunner.local import testsuite |
from testrunner.local import utils |
from testrunner.objects import testcase |
@@ -136,6 +137,13 @@ class Test262TestSuite(testsuite.TestSuite): |
return True |
return "FAILED!" in output.stdout |
+ def HasUnexpectedOutput(self, testcase): |
+ outcome = self.GetOutcome(testcase) |
+ if (statusfile.FAIL_SLOPPY in testcase.outcomes and |
+ "--use-strict" not in testcase.flags): |
+ return outcome != statusfile.FAIL |
+ return not outcome in (testcase.outcomes or [statusfile.PASS]) |
+ |
def DownloadData(self): |
revision = TEST_262_ARCHIVE_REVISION |
archive_url = TEST_262_URL % revision |