test: check symbols in shared lib

When building the node with `--shared` option, we need
to verify the symbols in shared lib instead of executable.

Refs: https://github.com/nodejs/node/issues/18535

Signed-off-by: Yihong Wang <yh.wang@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/18806
Refs: https://github.com/nodejs/node/issues/18535
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Yihong Wang authored and Myles Borins committed 2018-08-16 01:59:14 -04:00
1 parent 8fad7affd9
commit 2f6866e1d9
2 files changed
+22 -2

No files matched your search

+7 -1
View File
@@ -7,7 +7,13 @@
const common = require('../common');
const assert = require('assert');
const { spawnSync } = require('child_process');
const args = [process.execPath];
const { getSharedLibPath } = require('../common/shared-lib-util.js');
// For shared lib case, check shared lib instead
const args = [
process.config.variables.node_shared ?
getSharedLibPath() : process.execPath
];
if (common.isAIX)
args.unshift('-Xany', '-B');