mirror of https://github.com/nodejs/node.git
test: skip `test-sqlite-extensions` when SQLite is not built by us
PR-URL: https://github.com/nodejs/node/pull/56341 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>pull/56353/head
parent
da3f388c14
commit
49acdc8748
|
@ -7,6 +7,10 @@ import test from 'node:test';
|
|||
import fs from 'node:fs';
|
||||
import childProcess from 'child_process';
|
||||
|
||||
if (process.config.variables.node_shared_sqlite) {
|
||||
common.skip('Missing libsqlite_extension binary');
|
||||
}
|
||||
|
||||
// Lib extension binary is named differently on different platforms
|
||||
function resolveBuiltBinary(binary) {
|
||||
const targetFile = fs.readdirSync(path.dirname(process.execPath)).find((file) => file.startsWith(binary));
|
||||
|
|
Loading…
Reference in New Issue