Skip to content

Commit 2531159

Browse files
committed
build,tools: add test-ubsan ci
nodejs/node#46297
1 parent 8042dd9 commit 2531159

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

patches/node/ci_ensure_node_tests_set_electron_run_as_node.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ index af23e674cb361ed81dafa22670d5633559cd1144..1dd59990cb7cdba8aecf4f499ee6b92e
3333
+ await once(spawn(process.execPath, ['-r', reset, '--test', '--test-reporter', 'tap', test], { stdio: 'inherit', env: { ELECTRON_RUN_AS_NODE: 1 } }), 'exit');
3434
})().then(common.mustCall());
3535
diff --git a/test/parallel/test-node-output-console.mjs b/test/parallel/test-node-output-console.mjs
36-
index 5a1b9feb6c8bedb50b89f5c4f3c5983455bb042d..efca7811dc0b6a590c5ee023c71801703a642882 100644
36+
index f995c170540ffaa80b1b5f8b95dbd8f52bbd5431..6455dbdd015477e16c414b6d2113139327fea4b3 100644
3737
--- a/test/parallel/test-node-output-console.mjs
3838
+++ b/test/parallel/test-node-output-console.mjs
3939
@@ -31,6 +31,7 @@ describe('console output', { concurrency: true }, () => {
4040
.transform(snapshot.replaceWindowsLineEndings, snapshot.replaceWindowsPaths, replaceStackTrace);
4141
for (const { name, transform, env } of tests) {
4242
it(name, async () => {
4343
+ if (env) env.ELECTRON_RUN_AS_NODE = 1;
44-
await snapshot.spawnAndAssert(fixtures.path(name), transform ?? defaultTransform, { env });
45-
});
46-
}
44+
await snapshot.spawnAndAssert(
45+
fixtures.path(name),
46+
transform ?? defaultTransform,
4747
diff --git a/test/parallel/test-node-output-errors.mjs b/test/parallel/test-node-output-errors.mjs
4848
index c0acee2bfc8c124e9d9b254041589a49c8301b8f..0e266899ffc0918b2f94e8f636043a6ec5f0870f 100644
4949
--- a/test/parallel/test-node-output-errors.mjs

0 commit comments

Comments
 (0)