Bug 1333276 - Remove length checks on non-deterministic nativeStack memoryMap and stack properties. r?jchen draft
authorMike Conley <mconley@mozilla.com>
Mon, 06 Mar 2017 18:04:00 -0500
changeset 494259 692d2b1f6d983e3a90b5f3e9d124ab2e3ccbd10d
parent 493524 80c06df83395314697d464f88f8daa98bf05465c
child 548068 929d44210be434de36df938cd44ff52fb9665d1b
push id47997
push usermconley@mozilla.com
push dateMon, 06 Mar 2017 23:04:36 +0000
reviewersjchen
bugs1333276
milestone54.0a1
Bug 1333276 - Remove length checks on non-deterministic nativeStack memoryMap and stack properties. r?jchen MozReview-Commit-ID: IVX8EGYD6nk
toolkit/components/telemetry/tests/unit/test_ThreadHangStats.js
--- a/toolkit/components/telemetry/tests/unit/test_ThreadHangStats.js
+++ b/toolkit/components/telemetry/tests/unit/test_ThreadHangStats.js
@@ -86,19 +86,17 @@ function run_test() {
 
       // Native stack gathering is only enabled on Windows.
       if (mozinfo.os == "win") {
         // Make sure one of the hangs is a permanent
         // hang containing a native stack.
         ok(endHangs.hangs.some((hang) => (
           hang.nativeStack &&
           Array.isArray(hang.nativeStack.memoryMap) &&
-          hang.nativeStack.memoryMap.length !== 0 &&
-          Array.isArray(hang.nativeStack.stacks) &&
-          hang.nativeStack.stacks.length !== 0
+          Array.isArray(hang.nativeStack.stacks)
         )));
       }
 
       check_histogram(endHangs.hangs[0].histogram);
 
       do_test_finished();
     };