-
Notifications
You must be signed in to change notification settings - Fork 29.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-net-GH-5504.js is failing because environment variables are missing #3183
Comments
good catch @john-yan, care to open a pull request against |
@rvagg Thanks. The pull request is opened for the master branch, and I also back port it for v4.x. |
We experienced this on joyent/node. I thought the appropriate commit was cherry picked over. You should just have to Does anyone think it would be useful to include an option to automatically extend the environment? |
In test https://github.com/nodejs/node/blob/master/test/sequential/test-net-GH-5504.js
This code loses the original environment variables passing into the program, which causes failure for the spawn function. Specifically, the program could not start because the loader couldn't find the correct version of standard c++ library which is not in the default location. The loader is supposed to find the needed libraries thought LD_LIBRARY_PATH environment variable which is missing.
I suggests to change the above code to this instead:
The text was updated successfully, but these errors were encountered: