From 76b9cf5424d01b7449e3b4902d305d3a04f355ea Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 22 May 2019 15:40:23 -0400 Subject: [PATCH] test: detect missing postmortem metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater Reviewed-By: Rich Trott --- test/v8-updates/test-postmortem-metadata.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/v8-updates/test-postmortem-metadata.js b/test/v8-updates/test-postmortem-metadata.js index c6704ef1e34bc2..3dacc97388993d 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); });