node/test/addons
Sam Roberts 65e9b0f5a2
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
Backport-PR-URL: https://github.com/nodejs/node/pull/29599
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-09-19 10:54:38 +01:00
..
async-hello-world src: add helper for addons to get the event loop 2018-01-15 17:54:02 -05:00
async-hooks-id test: properly tag anonymous namespaces 2018-08-16 11:38:50 +10:00
async-hooks-promise test: remove custom message from assertion 2017-11-16 18:18:10 -05:00
async-resource src: make AsyncResource destructor virtual 2018-08-16 11:38:51 +10:00
at-exit test,doc: make module name match gyp target name 2017-09-12 03:18:36 +02:00
buffer-free-callback test,doc: make module name match gyp target name 2017-09-12 03:18:36 +02:00
callback-scope test: properly tag anonymous namespaces 2018-08-16 11:38:50 +10:00
heap-profiler test,doc: make module name match gyp target name 2017-09-12 03:18:36 +02:00
hello-world test,doc: make module name match gyp target name 2017-09-12 03:18:36 +02:00
hello-world-esm test: fix test-esm-addons 2017-10-17 23:29:36 -07:00
hello-world-function-export test,doc: make module name match gyp target name 2017-09-12 03:18:36 +02:00
load-long-path test: move tmpdir to submodule of common 2018-03-29 23:28:22 -04:00
make-callback test: properly tag anonymous namespaces 2018-08-16 11:38:50 +10:00
make-callback-recurse test: fix deprecation warning in binding.cc 2018-08-16 01:59:14 -04:00
new-target test: check that this != new.target in addon 2017-10-11 02:05:34 -04:00
node-module-version n-api: use module name macro 2017-10-17 23:34:48 -07:00
not-a-binding test: add check on an addon that does not register 2017-08-01 18:46:16 +02:00
null-buffer-neuter test,doc: make module name match gyp target name 2017-09-12 03:18:36 +02:00
openssl-binding build: refine static and shared lib build 2018-03-29 23:28:20 -04:00
parse-encoding test,doc: make module name match gyp target name 2017-09-12 03:18:36 +02:00
repl-domain-abort src: use nullptr instead of NULL 2018-01-03 23:27:56 +00:00
stringbytes-external-exceed-max test: specialize OOM check for AIX 2019-09-19 10:54:38 +01:00
symlinked-module test: specify 'dir' for directory symlinks 2018-09-06 09:40:49 -07:00
zlib-binding build: refine static and shared lib build 2018-03-29 23:28:20 -04:00
.gitignore build: make ci test addons in test/addons 2015-08-25 12:03:57 +02:00
addon.status test: specialize OOM check for AIX 2019-09-19 10:54:38 +01:00
testcfg.py