| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9ec105c commit d02fb36
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -224,11 +224,6 @@ Platform check for Windows. | |||
| 224 | 224 | ||
| 225 | 225 | Platform check for Windows 32-bit on Windows 64-bit. | |
| 226 | 226 | ||
| 227 | - ### isCPPSymbolsNotMapped | ||
| 228 | - * [<boolean>] | ||
| 229 | - | ||
| 230 | - Platform check for C++ symbols are mapped or not. | ||
| 231 | - | ||
| 232 | 227 | ### leakedGlobals() | |
| 233 | 228 | * return [<Array>] | |
| 234 | 229 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -799,9 +799,3 @@ exports.runWithInvalidFD = function(func) { | |||
| 799 | 799 | ||
| 800 | 800 | exports.printSkipMessage('Could not generate an invalid fd'); | |
| 801 | 801 | }; | |
| 802 | - | ||
| 803 | - exports.isCPPSymbolsNotMapped = exports.isWindows || | ||
| 804 | - exports.isSunOS || | ||
| 805 | - exports.isAIX || | ||
| 806 | - exports.isLinuxPPCBE || | ||
| 807 | - exports.isFreeBSD; | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,8 +51,7 @@ const { | |||
| 51 | 51 | getBufferSources, | |
| 52 | 52 | disableCrashOnUnhandledRejection, | |
| 53 | 53 | getTTYfd, | |
| 54 | - runWithInvalidFD, | ||
| 55 | - isCPPSymbolsNotMapped | ||
| 54 | + runWithInvalidFD | ||
| 56 | 55 | } = common; | |
| 57 | 56 | ||
| 58 | 57 | export { | |
@@ -104,6 +103,5 @@ export { | |||
| 104 | 103 | getBufferSources, | |
| 105 | 104 | disableCrashOnUnhandledRejection, | |
| 106 | 105 | getTTYfd, | |
| 107 | - runWithInvalidFD, | ||
| 108 | - isCPPSymbolsNotMapped | ||
| 106 | + runWithInvalidFD | ||
| 109 | 107 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,11 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | + const { isCPPSymbolsNotMapped } = require('./util'); | ||
| 3 | 4 | ||
| 4 | 5 | if (!common.enoughTestCpu) | |
| 5 | 6 | common.skip('test is CPU-intensive'); | |
| 6 | 7 | ||
| 7 | - if (common.isCPPSymbolsNotMapped) { | ||
| 8 | + if (isCPPSymbolsNotMapped) { | ||
| 8 | 9 | common.skip('C++ symbols are not mapped for this os.'); | |
| 9 | 10 | } | |
| 10 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,11 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | + const { isCPPSymbolsNotMapped } = require('./util'); | ||
| 3 | 4 | ||
| 4 | 5 | if (!common.enoughTestCpu) | |
| 5 | 6 | common.skip('test is CPU-intensive'); | |
| 6 | 7 | ||
| 7 | - if (common.isCPPSymbolsNotMapped) { | ||
| 8 | + if (isCPPSymbolsNotMapped) { | ||
| 8 | 9 | common.skip('C++ symbols are not mapped for this os.'); | |
| 9 | 10 | } | |
| 10 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,13 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | + const { isCPPSymbolsNotMapped } = require('./util'); | ||
| 3 | 4 | const tmpdir = require('../common/tmpdir'); | |
| 4 | 5 | tmpdir.refresh(); | |
| 5 | 6 | ||
| 6 | 7 | if (!common.enoughTestCpu) | |
| 7 | 8 | common.skip('test is CPU-intensive'); | |
| 8 | 9 | ||
| 9 | - if (common.isCPPSymbolsNotMapped) { | ||
| 10 | + if (isCPPSymbolsNotMapped) { | ||
| 10 | 11 | common.skip('C++ symbols are not mapped for this OS.'); | |
| 11 | 12 | } | |
| 12 | 13 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,11 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | const common = require('../common'); | |
| 3 | + const { isCPPSymbolsNotMapped } = require('./util'); | ||
| 3 | 4 | ||
| 4 | 5 | if (!common.enoughTestCpu) | |
| 5 | 6 | common.skip('test is CPU-intensive'); | |
| 6 | 7 | ||
| 7 | - if (common.isCPPSymbolsNotMapped) { | ||
| 8 | + if (isCPPSymbolsNotMapped) { | ||
| 8 | 9 | common.skip('C++ symbols are not mapped for this os.'); | |
| 9 | 10 | } | |
| 10 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,18 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + | ||
| 3 | + // Utilities for the tick-processor tests | ||
| 4 | + const { | ||
| 5 | + isWindows, | ||
| 6 | + isSunOS, | ||
| 7 | + isAIX, | ||
| 8 | + isLinuxPPCBE, | ||
| 9 | + isFreeBSD | ||
| 10 | + } = require('../common'); | ||
| 11 | + | ||
| 12 | + module.exports = { | ||
| 13 | + isCPPSymbolsNotMapped: isWindows || | ||
| 14 | + isSunOS || | ||
| 15 | + isAIX || | ||
| 16 | + isLinuxPPCBE || | ||
| 17 | + isFreeBSD | ||
| 18 | + }; | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments