node/test/addons/stringbytes-external-exceed...
Sam Roberts 41fa5536d1 test: specialize OOM check for AIX
Assumption that if memory can be malloc()ed it can be used is not true
on AIX. Later access of the allocated pages can trigger SIGKILL if there
are insufficient VM pages.

Use psdanger() to better estimate available memory.

Fixes: https://github.com/nodejs/build/issues/1849

More info:
- https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/generalprogramming/sys_mem_alloc.html
- https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/p_bostechref/psdanger.html

Related to:
- https://github.com/nodejs/build/issues/1820#issuecomment-505998851
- https://github.com/nodejs/node/pull/28469
- https://github.com/nodejs/node/pull/28516

PR-URL: https://github.com/nodejs/node/pull/28857
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2019-07-27 16:03:43 -07:00
..
binding.cc test: specialize OOM check for AIX 2019-07-27 16:03:43 -07:00
binding.gyp test, tools: suppress addon function cast warnings 2019-02-01 14:08:20 +01:00
test-stringbytes-external-at-max.js test: replace internals with public API 2019-01-03 22:58:26 -08:00
test-stringbytes-external-exceed-max-by-1-ascii.js test: replace internals with public API 2019-01-03 22:58:26 -08:00
test-stringbytes-external-exceed-max-by-1-base64.js test: replace internals with public API 2019-01-03 22:58:26 -08:00
test-stringbytes-external-exceed-max-by-1-binary.js test: replace internals with public API 2019-01-03 22:58:26 -08:00
test-stringbytes-external-exceed-max-by-1-hex.js test: replace internals with public API 2019-01-03 22:58:26 -08:00
test-stringbytes-external-exceed-max-by-1-utf8.js test: replace internals with public API 2019-01-03 22:58:26 -08:00
test-stringbytes-external-exceed-max-by-2.js test: replace internals with public API 2019-01-03 22:58:26 -08:00
test-stringbytes-external-exceed-max.js test: skip stringbytes-external-exceed-max on AIX 2019-07-04 13:03:58 -07:00