summaryrefslogtreecommitdiff
path: root/test/tick-processor
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2018-08-22 08:14:31 -0700
committerJames M Snell <jasnell@gmail.com>2018-08-24 11:14:07 -0700
commit6bb96a1183d9492a34a745a5d1bb48552a4eef24 (patch)
tree1ac28be66c48f0511f36fffd24eb03027a960e06 /test/tick-processor
parent5673017c33c96a20c39cd5deb70714a41267d029 (diff)
downloadnode-new-6bb96a1183d9492a34a745a5d1bb48552a4eef24.tar.gz
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>
Diffstat (limited to 'test/tick-processor')
-rw-r--r--test/tick-processor/test-tick-processor-builtin.js3
-rw-r--r--test/tick-processor/test-tick-processor-cpp-core.js3
-rw-r--r--test/tick-processor/test-tick-processor-polyfill-brokenfile.js3
-rw-r--r--test/tick-processor/test-tick-processor-preprocess-flag.js3
-rw-r--r--test/tick-processor/util.js18
5 files changed, 26 insertions, 4 deletions
diff --git a/test/tick-processor/test-tick-processor-builtin.js b/test/tick-processor/test-tick-processor-builtin.js
index 3d4e1b9d23..1f38abe08c 100644
--- a/test/tick-processor/test-tick-processor-builtin.js
+++ b/test/tick-processor/test-tick-processor-builtin.js
@@ -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.');
}
diff --git a/test/tick-processor/test-tick-processor-cpp-core.js b/test/tick-processor/test-tick-processor-cpp-core.js
index 26daf60aa3..e76d99ab09 100644
--- a/test/tick-processor/test-tick-processor-cpp-core.js
+++ b/test/tick-processor/test-tick-processor-cpp-core.js
@@ -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.');
}
diff --git a/test/tick-processor/test-tick-processor-polyfill-brokenfile.js b/test/tick-processor/test-tick-processor-polyfill-brokenfile.js
index 3348b6f11b..d0a6eb9f81 100644
--- a/test/tick-processor/test-tick-processor-polyfill-brokenfile.js
+++ b/test/tick-processor/test-tick-processor-polyfill-brokenfile.js
@@ -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.');
}
diff --git a/test/tick-processor/test-tick-processor-preprocess-flag.js b/test/tick-processor/test-tick-processor-preprocess-flag.js
index 93367361ac..8b1ec9920f 100644
--- a/test/tick-processor/test-tick-processor-preprocess-flag.js
+++ b/test/tick-processor/test-tick-processor-preprocess-flag.js
@@ -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.');
}
diff --git a/test/tick-processor/util.js b/test/tick-processor/util.js
new file mode 100644
index 0000000000..d25a2a7dcb
--- /dev/null
+++ b/test/tick-processor/util.js
@@ -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
+};