diff options
author | Roman Reiss <me@silverwind.io> | 2015-05-19 13:00:06 +0200 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2015-05-19 21:21:27 +0200 |
commit | f29762f4dd5811464684f820286f1c90a694bdff (patch) | |
tree | 67ba73a81c3938f41796dfa4c595f9713de59933 /test/pummel/test-dtrace-jsstack.js | |
parent | 85d99830096a48b7d50cc3b0e5c3fba4172c2d02 (diff) | |
download | android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.tar.gz android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.tar.bz2 android-node-v8-f29762f4dd5811464684f820286f1c90a694bdff.zip |
test: enable linting for tests
Enable linting for the test directory. A number of changes was made so
all tests conform the current rules used by lib and src directories. The
only exception for tests is that unreachable (dead) code is allowed.
test-fs-non-number-arguments-throw had to be excluded from the changes
because of a weird issue on Windows CI.
PR-URL: https://github.com/nodejs/io.js/pull/1721
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/pummel/test-dtrace-jsstack.js')
-rw-r--r-- | test/pummel/test-dtrace-jsstack.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/pummel/test-dtrace-jsstack.js b/test/pummel/test-dtrace-jsstack.js index e86a497f69..831402fc87 100644 --- a/test/pummel/test-dtrace-jsstack.js +++ b/test/pummel/test-dtrace-jsstack.js @@ -1,3 +1,4 @@ +'use strict'; var common = require('../common'); var assert = require('assert'); var os = require('os'); @@ -14,18 +15,18 @@ if (os.type() != 'SunOS') { var frames = [ 'stalloogle', 'bagnoogle', 'doogle' ]; var expected; -var stalloogle = function (str) { +var stalloogle = function(str) { expected = str; os.loadavg(); }; -var bagnoogle = function (arg0, arg1) { +var bagnoogle = function(arg0, arg1) { stalloogle(arg0 + ' is ' + arg1 + ' except that it is read-only'); }; var done = false; -var doogle = function () { +var doogle = function() { if (!done) setTimeout(doogle, 10); @@ -46,15 +47,15 @@ var dtrace = spawn('dtrace', [ '-qwn', 'syscall::getloadavg:entry/pid == ' + var output = ''; -dtrace.stderr.on('data', function (data) { +dtrace.stderr.on('data', function(data) { console.log('dtrace: ' + data); }); -dtrace.stdout.on('data', function (data) { +dtrace.stdout.on('data', function(data) { output += data; }); -dtrace.on('exit', function (code) { +dtrace.on('exit', function(code) { if (code != 0) { console.error('dtrace exited with code ' + code); process.exit(code); |