The `test-tick-processor-*` tests are now passing everywhere except for the single-processor 700MHz Raspberry Pi 1 devices. The tests are CPU-intensive. Skip the tests if there is only one CPU and it runs at a speed not more than 700 MHz. PR-URL: https://github.com/nodejs/node/pull/8652 Reviewed-By: Matthew Loring <mattloring@google.com>
29 lines
637 B
JavaScript
29 lines
637 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const path = require('path');
|
|
|
|
if (common.isWindows ||
|
|
common.isSunOS ||
|
|
common.isAix ||
|
|
common.isLinuxPPCBE ||
|
|
common.isFreeBSD) {
|
|
common.skip('C++ symbols are not mapped for this os.');
|
|
return;
|
|
}
|
|
|
|
if (!common.enoughTestCpu) {
|
|
common.skip('test is CPU-intensive');
|
|
return;
|
|
}
|
|
|
|
const base = require(path.join(common.fixturesDir, 'tick-processor-base.js'));
|
|
|
|
base.runTest({
|
|
pattern: /RunInDebugContext/,
|
|
code: `function f() {
|
|
require(\'vm\').runInDebugContext(\'Debug\');
|
|
setImmediate(function() { f(); });
|
|
};
|
|
f();`
|
|
});
|