-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fix embedding test for Windows #53659
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM although I think it's fine to simply use a looser regexp in test-embedding.js and just match
stderr: /NODE_REPL_EXTERNAL_MODULE can't be used with kDisableNodeOptionsEnv/
Thanks! I had considered it initially, but decided on the |
8632afa
to
e747896
Compare
PR #52905 had added a new test case for embedding test which was failing for Windows.
The reason was that the expected error message has the Posix-specific line ending
\n
while on Windows the output string contains\r\n
:PR #52905 temporary disabled this new test case for Windows.
This PR removes the temporary test disablement for Windows and implements the fix by replacing
\r\n
in the the output string with\n
before comparison.After this change the embedding test is passing for Windows.