Skip to content

Commit

Permalink
test: skip test-sqlite-extensions when SQLite is not built by us
Browse files Browse the repository at this point in the history
PR-URL: #56341
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
aduh95 authored Dec 24, 2024
1 parent da3f388 commit 49acdc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/sqlite/test-sqlite-extensions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 49acdc8

Please sign in to comment.