Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: fix test-domain-with-abort-on-uncaught-exception.js on AIX
Add SIGTRAP as an expected signal when running on AIX.

Port of f45c315 for v0.12
  • Loading branch information
Devin Nakamura committed Nov 24, 2015
commit 3f3c985ce49d0e605a8240f9cca57e7ea436336b
8 changes: 6 additions & 2 deletions test/simple/test-domain-with-abort-on-uncaught-exception.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,16 @@ if (process.argv[2] === 'child') {
// On some platforms with KSH being the default shell
// (like SmartOS), when a process aborts, KSH exits with an exit
// code that is greater than 256, and thus the exit code emitted
// with the 'exit' event is null and the signal is set to either
// SIGABRT or SIGILL.
// with the 'exit' event is null and the signal is set to
// SIGABRT, SIGILL, or SIGTRAP (depending on compiler).
if (process.platform === 'sunos') {
expectedExitCode = null;
expectedSignal = ['SIGABRT', 'SIGILL'];
}
if (process.platform === 'aix') {
expectedExitCode = null;
expectedSignal = ['SIGTRAP'];
}

// On Windows, v8's base::OS::Abort also triggers a debug breakpoint
// which makes the process exit with code -2147483645
Expand Down