From 439112a91bcf7bdff5b1ba03fd90b9eb079ddda7 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 3 Nov 2017 08:58:51 +0100 Subject: [PATCH] test: fix test-cli-node-options on Windows https://github.com/nodejs/node/pull/16495 broke the Windows build, accounting for `\r\n` newlines should fix it. Ref: https://github.com/nodejs/node/pull/16495 PR-URL: https://github.com/nodejs/node/pull/16709 Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau --- test/parallel/test-cli-node-options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-cli-node-options.js b/test/parallel/test-cli-node-options.js index 393db6a0e5c19a..85c35508566ff1 100644 --- a/test/parallel/test-cli-node-options.js +++ b/test/parallel/test-cli-node-options.js @@ -35,7 +35,7 @@ if (common.hasCrypto) { expect('--abort_on-uncaught_exception', 'B\n'); expect('--max-old-space-size=0', 'B\n'); expect('--stack-trace-limit=100', - /(\s*at f \(\[eval\]:1:\d*\)\n){100}/, + /(\s*at f \(\[eval\]:1:\d*\)\r?\n){100}/, '(function f() { f(); })();', true);