diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-11-26 13:03:22 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-12-03 17:30:30 +0800 |
commit | 6fd289860190f80b616fdb126bb97ce3f8a0a1c7 (patch) | |
tree | e423b347d2a851b8409c2ca356d8822dbc96be9f /test | |
parent | cc3f2b386c6ee34f5574c69c29647165a9bc3aef (diff) | |
download | android-node-v8-6fd289860190f80b616fdb126bb97ce3f8a0a1c7.tar.gz android-node-v8-6fd289860190f80b616fdb126bb97ce3f8a0a1c7.tar.bz2 android-node-v8-6fd289860190f80b616fdb126bb97ce3f8a0a1c7.zip |
build: add --without-node-code-cache configure option
So that it's possible to build without code cache (in particular,
without building mkcodecache) for testing.
PR-URL: https://github.com/nodejs/node/pull/30647
Refs: https://github.com/nodejs/node/issues/28845
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-code-cache.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/parallel/test-code-cache.js b/test/parallel/test-code-cache.js index d01392f1ee..3c4488c557 100644 --- a/test/parallel/test-code-cache.js +++ b/test/parallel/test-code-cache.js @@ -33,6 +33,8 @@ const loadedModules = process.moduleLoadList // are all compiled without cache and we are doing the bookkeeping right. if (!process.features.cached_builtins) { console.log('The binary is not configured with code cache'); + assert(!process.config.variables.node_use_node_code_cache); + if (isMainThread) { assert.deepStrictEqual(compiledWithCache, new Set()); for (const key of loadedModules) { @@ -46,10 +48,7 @@ if (!process.features.cached_builtins) { assert.notDeepStrictEqual(compiledWithCache, new Set()); } } else { // Native compiled - assert.strictEqual( - process.config.variables.node_code_cache, - 'yes' - ); + assert(process.config.variables.node_use_node_code_cache); if (!isMainThread) { for (const key of [ 'internal/bootstrap/pre_execution' ]) { |