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/cctest | |
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/cctest')
-rw-r--r-- | test/cctest/gtest/gtest_main.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cctest/gtest/gtest_main.cc b/test/cctest/gtest/gtest_main.cc index 1ed4df2878..345044407a 100644 --- a/test/cctest/gtest/gtest_main.cc +++ b/test/cctest/gtest/gtest_main.cc @@ -28,6 +28,7 @@ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <cstdio> +#include <uv.h> #include "gtest.h" #ifdef ARDUINO @@ -40,6 +41,7 @@ void loop() { RUN_ALL_TESTS(); } #else GTEST_API_ int main(int argc, char **argv) { + argv = uv_setup_args(argc, argv); printf("Running main() from %s\n", __FILE__); testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); |