Bug 1016629 - h. Fix wrong sysinfo usage; r=trivial
authorJim Chen <nchen@mozilla.com>
Mon, 28 Jul 2014 13:30:22 -0400
changeset 196371 fa87806142d488701617e7d50758be0dbbd8cc0a
parent 196370 60a248ab5036b1988ffc2a49ba4da1e25f3a05ab
child 196372 ccfca130bbe3da70abf1979677d4b1ffcbec97d5
push id46863
push usernchen@mozilla.com
push dateMon, 28 Jul 2014 17:30:47 +0000
treeherdermozilla-inbound@fa87806142d4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstrivial
bugs1016629
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1016629 - h. Fix wrong sysinfo usage; r=trivial
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
@@ -19,17 +19,18 @@ function run_test() {
     ok("Hang reporting not enabled.");
     return;
   }
 
   if (Services.appinfo.OS === 'Linux' || Services.appinfo.OS === 'Android') {
     // We use the rt_tgsigqueueinfo syscall on Linux which requires a
     // certain kernel version. It's not an error if the system running
     // the test is older than that.
-    let kernel = Services.sysinfo.kernel_version || Services.sysinfo.version;
+    let kernel = Services.sysinfo.get('kernel_version') ||
+                 Services.sysinfo.get('version');
     if (Services.vc.compare(kernel, '2.6.31') < 0) {
       ok("Hang reporting not supported for old kernel.");
       return;
     }
   }
 
   // Run two events in the event loop:
   // the first event causes a hang;