diff --git a/src/node.cc b/src/node.cc index 3f0f6116139c34..741b5dea82b7ba 100644 --- a/src/node.cc +++ b/src/node.cc @@ -247,7 +247,10 @@ node::DebugOptions debug_options; static struct { #if NODE_USE_V8_PLATFORM void Initialize(int thread_pool_size) { - platform_ = v8::platform::CreateDefaultPlatform(thread_pool_size); + platform_ = v8::platform::CreateDefaultPlatform( + thread_pool_size, + v8::platform::IdleTaskSupport::kDisabled, + v8::platform::InProcessStackDumping::kDisabled); V8::InitializePlatform(platform_); tracing::TraceEventHelper::SetCurrentPlatform(platform_); } diff --git a/test/abort/test-process-abort-exitcode.js b/test/abort/test-process-abort-exitcode.js new file mode 100644 index 00000000000000..b29f9dc75cd202 --- /dev/null +++ b/test/abort/test-process-abort-exitcode.js @@ -0,0 +1,24 @@ +'use strict'; +const common = require('../common'); +const assert = require('assert'); + +// This test makes sure that an aborted node process +// exits with code 3 on Windows, and SIGABRT on POSIX. +// Spawn a child, force an abort, and then check the +// exit code in the parent. + +const spawn = require('child_process').spawn; +if (process.argv[2] === 'child') { + process.abort(); +} else { + const child = spawn(process.execPath, [__filename, 'child']); + child.on('exit', common.mustCall((code, signal) => { + if (common.isWindows) { + assert.strictEqual(code, 3); + assert.strictEqual(signal, null); + } else { + assert.strictEqual(code, null); + assert.strictEqual(signal, 'SIGABRT'); + } + })); +} diff --git a/test/async-hooks/async-hooks.status b/test/async-hooks/async-hooks.status deleted file mode 100644 index 500d5c3a76c2a9..00000000000000 --- a/test/async-hooks/async-hooks.status +++ /dev/null @@ -1,21 +0,0 @@ -prefix async-hooks - -# To mark a test as flaky, list the test name in the appropriate section -# below, without ".js", followed by ": PASS,FLAKY". Example: -# sample-test : PASS,FLAKY - -[true] # This section applies to all platforms - -[$system==win32] - -[$system==linux] -test-callback-error : PASS,FLAKY - -[$system==macos] -test-callback-error : PASS,FLAKY - -[$arch==arm || $arch==arm64] - -[$system==solaris] # Also applies to SmartOS - -[$system==freebsd]