diff options
author | cjihrig <cjihrig@gmail.com> | 2019-05-22 15:40:23 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-05-26 10:40:37 -0400 |
commit | 76b9cf5424d01b7449e3b4902d305d3a04f355ea (patch) | |
tree | 1bbf860df983f437375f9a83f02496ffebd6354c /test/v8-updates/test-postmortem-metadata.js | |
parent | 6f924b60c50d446b46b358a76d15b675a311002b (diff) | |
download | android-node-v8-76b9cf5424d01b7449e3b4902d305d3a04f355ea.tar.gz android-node-v8-76b9cf5424d01b7449e3b4902d305d3a04f355ea.tar.bz2 android-node-v8-76b9cf5424d01b7449e3b4902d305d3a04f355ea.zip |
test: detect missing postmortem metadata
This commit updates test-postmortem-metadata to provide a
more useful error message in the scenario where Node is
compiled without postmortem support.
PR-URL: https://github.com/nodejs/node/pull/27828
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/v8-updates/test-postmortem-metadata.js')
-rw-r--r-- | test/v8-updates/test-postmortem-metadata.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/v8-updates/test-postmortem-metadata.js b/test/v8-updates/test-postmortem-metadata.js index c6704ef1e3..3dacc97388 100644 --- a/test/v8-updates/test-postmortem-metadata.js +++ b/test/v8-updates/test-postmortem-metadata.js @@ -41,6 +41,9 @@ const symbols = nm.stdout.toString().split('\n').reduce((filtered, line) => { return filtered; }, []); + +assert.notStrictEqual(symbols.length, 0, 'No postmortem metadata detected'); + const missing = getExpectedSymbols().filter((symbol) => { return !symbols.includes(symbol); }); |