diff options
author | cjihrig <cjihrig@gmail.com> | 2020-08-12 14:35:40 -0400 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-08-14 15:29:29 -0700 |
commit | 1e59f31555d547cebadc3f647cc4693cb98b5690 (patch) | |
tree | 2ed1a640baf23c0c8766f2b4250ed2f1e59fd798 /test/embedding | |
parent | 8640cd6066b858f7499d175b18dfc1947653063f (diff) | |
download | node-new-1e59f31555d547cebadc3f647cc4693cb98b5690.tar.gz |
test,doc: add missing uv_setup_args() calls
libuv 1.39.0 will begin requiring uv_setup_args() to be called
before attempting to access the process title. This commit adds
uv_setup_args() calls that were missing in order for the test
suite to pass (and updates the documentation).
PR-URL: https://github.com/nodejs/node/pull/34751
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/embedding')
-rw-r--r-- | test/embedding/embedtest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/embedding/embedtest.cc b/test/embedding/embedtest.cc index 21e5ac713e..21baadf93e 100644 --- a/test/embedding/embedtest.cc +++ b/test/embedding/embedtest.cc @@ -24,6 +24,7 @@ static int RunNodeInstance(MultiIsolatePlatform* platform, const std::vector<std::string>& exec_args); int main(int argc, char** argv) { + argv = uv_setup_args(argc, argv); std::vector<std::string> args(argv, argv + argc); std::vector<std::string> exec_args; std::vector<std::string> errors; |