Bug 1455176: Follow-up: Fix build bustage from xpcshell self-test. r=bustage CLOSED TREE
authorKris Maglione <maglione.k@gmail.com>
Thu, 19 Apr 2018 15:11:15 -0700
changeset 785465 d6cbfda78737876618f2a855df465dd5aa711139
parent 785464 0953370890fa93c929890fddb2751e8277b79120
child 785466 afbc50ccf0d05fddfae15ae0e5f678a5c39b1d03
push id107236
push userbmo:emilio@crisal.io
push dateFri, 20 Apr 2018 08:31:50 +0000
reviewersbustage
bugs1455176
milestone61.0a1
Bug 1455176: Follow-up: Fix build bustage from xpcshell self-test. r=bustage CLOSED TREE MozReview-Commit-ID: AZzLJyxyUxl
testing/xpcshell/selftest.py
--- a/testing/xpcshell/selftest.py
+++ b/testing/xpcshell/selftest.py
@@ -888,24 +888,23 @@ add_test({
         self.assertEquals(0, self.x.todoCount)
         self.assertInLog(TEST_FAIL_STRING)
         self.assertNotInLog(TEST_PASS_STRING)
 
     def testUncaughtRejection(self):
         """
         Ensure a simple test with an uncaught rejection is reported.
         """
-        self.writeFile("test_simple_uncaught_rejection.js", SIMPLE_UNCAUGHT_REJECTION_TEST)
+        self.writeFile("test_simple_uncaught_rejection.js",
+                       SIMPLE_UNCAUGHT_REJECTION_TEST)
         self.writeManifest(["test_simple_uncaught_rejection.js"])
 
         self.assertTestResult(False)
         self.assertInLog(TEST_FAIL_STRING)
-        if not substs.get('RELEASE_OR_BETA'):
-            # async stacks are currently not enabled in release builds.
-            self.assertInLog("test_simple_uncaught_rejection.js:3:3")
+        self.assertInLog("test_simple_uncaught_rejection.js:3:18")
         self.assertInLog("Test rejection.")
         self.assertEquals(1, self.x.testCount)
         self.assertEquals(0, self.x.passCount)
         self.assertEquals(1, self.x.failCount)
 
     def testUncaughtRejectionJSM(self):
         """
         Ensure a simple test with an uncaught rejection from Promise.jsm is reported.