2018-08-22 08:14:31 -07:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
// Utilities for the tick-processor tests
|
|
|
|
const {
|
|
|
|
isWindows,
|
|
|
|
isSunOS,
|
|
|
|
isAIX,
|
2022-11-17 08:02:11 -05:00
|
|
|
isFreeBSD,
|
2018-08-22 08:14:31 -07:00
|
|
|
} = require('../common');
|
|
|
|
|
2025-01-22 13:05:54 -08:00
|
|
|
const { endianness } = require('os');
|
|
|
|
|
|
|
|
function isLinuxPPCBE() {
|
|
|
|
return (process.platform === 'linux') &&
|
|
|
|
(process.arch === 'ppc64') &&
|
|
|
|
(endianness() === 'BE');
|
|
|
|
}
|
|
|
|
|
2018-08-22 08:14:31 -07:00
|
|
|
module.exports = {
|
|
|
|
isCPPSymbolsNotMapped: isWindows ||
|
|
|
|
isSunOS ||
|
|
|
|
isAIX ||
|
2025-01-22 13:05:54 -08:00
|
|
|
isLinuxPPCBE() ||
|
2022-11-17 08:02:11 -05:00
|
|
|
isFreeBSD,
|
2018-08-22 08:14:31 -07:00
|
|
|
};
|