Bug 1333276 - Remove length checks on non-deterministic nativeStack memoryMap and stack properties. r=jchen, a=test-only
authorMike Conley <mconley@mozilla.com>
Mon, 06 Mar 2017 18:04:00 -0500
changeset 395052 77188a492fd226731291aa2e6ed16f1c739218e8
parent 395051 949d1800c7f2cccecced257c478031544131681b
child 395053 fc5b01fb884a73b3bf8d7f03d30b7b8d498c52e9
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen, test-only
bugs1333276
milestone54.0a2
Bug 1333276 - Remove length checks on non-deterministic nativeStack memoryMap and stack properties. r=jchen, a=test-only 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();
     };