Bug 1016629 - h. Fix wrong sysinfo usage; r=trivial

This commit is contained in:
Jim Chen 2014-07-28 13:30:22 -04:00
parent f9478e9939
commit 382ac489ff

View File

@ -24,7 +24,8 @@ function run_test() {
// 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;