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 <luigipinca@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
Anna Henningsen 2017-11-03 08:58:51 +01:00
parent 562ea8986f
commit 3d4d5e0c60
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -34,7 +34,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);