mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: move common.isCPPSymbolsNotMapped to tick-processor tests
`common.isCPPSymbolsNotMapped` is used only by the tests in the `test/tick-processor` folder. Move it local to those to get it out of `common`. PR-URL: https://github.com/nodejs/node/pull/22459 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
parent
5673017c33
commit
6bb96a1183
@ -224,11 +224,6 @@ Platform check for Windows.
|
||||
|
||||
Platform check for Windows 32-bit on Windows 64-bit.
|
||||
|
||||
### isCPPSymbolsNotMapped
|
||||
* [<boolean>]
|
||||
|
||||
Platform check for C++ symbols are mapped or not.
|
||||
|
||||
### leakedGlobals()
|
||||
* return [<Array>]
|
||||
|
||||
|
@ -799,9 +799,3 @@ exports.runWithInvalidFD = function(func) {
|
||||
|
||||
exports.printSkipMessage('Could not generate an invalid fd');
|
||||
};
|
||||
|
||||
exports.isCPPSymbolsNotMapped = exports.isWindows ||
|
||||
exports.isSunOS ||
|
||||
exports.isAIX ||
|
||||
exports.isLinuxPPCBE ||
|
||||
exports.isFreeBSD;
|
||||
|
@ -51,8 +51,7 @@ const {
|
||||
getBufferSources,
|
||||
disableCrashOnUnhandledRejection,
|
||||
getTTYfd,
|
||||
runWithInvalidFD,
|
||||
isCPPSymbolsNotMapped
|
||||
runWithInvalidFD
|
||||
} = common;
|
||||
|
||||
export {
|
||||
@ -104,6 +103,5 @@ export {
|
||||
getBufferSources,
|
||||
disableCrashOnUnhandledRejection,
|
||||
getTTYfd,
|
||||
runWithInvalidFD,
|
||||
isCPPSymbolsNotMapped
|
||||
runWithInvalidFD
|
||||
};
|
||||
|
@ -1,10 +1,11 @@
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const { isCPPSymbolsNotMapped } = require('./util');
|
||||
|
||||
if (!common.enoughTestCpu)
|
||||
common.skip('test is CPU-intensive');
|
||||
|
||||
if (common.isCPPSymbolsNotMapped) {
|
||||
if (isCPPSymbolsNotMapped) {
|
||||
common.skip('C++ symbols are not mapped for this os.');
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,11 @@
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const { isCPPSymbolsNotMapped } = require('./util');
|
||||
|
||||
if (!common.enoughTestCpu)
|
||||
common.skip('test is CPU-intensive');
|
||||
|
||||
if (common.isCPPSymbolsNotMapped) {
|
||||
if (isCPPSymbolsNotMapped) {
|
||||
common.skip('C++ symbols are not mapped for this os.');
|
||||
}
|
||||
|
||||
|
@ -1,12 +1,13 @@
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const { isCPPSymbolsNotMapped } = require('./util');
|
||||
const tmpdir = require('../common/tmpdir');
|
||||
tmpdir.refresh();
|
||||
|
||||
if (!common.enoughTestCpu)
|
||||
common.skip('test is CPU-intensive');
|
||||
|
||||
if (common.isCPPSymbolsNotMapped) {
|
||||
if (isCPPSymbolsNotMapped) {
|
||||
common.skip('C++ symbols are not mapped for this OS.');
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,11 @@
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
const { isCPPSymbolsNotMapped } = require('./util');
|
||||
|
||||
if (!common.enoughTestCpu)
|
||||
common.skip('test is CPU-intensive');
|
||||
|
||||
if (common.isCPPSymbolsNotMapped) {
|
||||
if (isCPPSymbolsNotMapped) {
|
||||
common.skip('C++ symbols are not mapped for this os.');
|
||||
}
|
||||
|
||||
|
18
test/tick-processor/util.js
Normal file
18
test/tick-processor/util.js
Normal file
@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
// Utilities for the tick-processor tests
|
||||
const {
|
||||
isWindows,
|
||||
isSunOS,
|
||||
isAIX,
|
||||
isLinuxPPCBE,
|
||||
isFreeBSD
|
||||
} = require('../common');
|
||||
|
||||
module.exports = {
|
||||
isCPPSymbolsNotMapped: isWindows ||
|
||||
isSunOS ||
|
||||
isAIX ||
|
||||
isLinuxPPCBE ||
|
||||
isFreeBSD
|
||||
};
|
Loading…
Reference in New Issue
Block a user