diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-01-31 20:31:33 +0100 |
---|---|---|
committer | Shelley Vohr <shelley.vohr@gmail.com> | 2020-02-17 12:04:51 -0800 |
commit | 7c3cc94b9fbed6c08a91f7a82f6515c3c5263b99 (patch) | |
tree | bea5ccf716122a4a5b6ab9c205dae70c765b3946 /test | |
parent | 43e2c2e6439ebbf89d92afbfeae16235636dac02 (diff) | |
download | node-new-7c3cc94b9fbed6c08a91f7a82f6515c3c5263b99.tar.gz |
test: unset NODE_OPTIONS for cctest
The test may fail otherwise because of behaviour changes caused
by setting the environment variable.
Fixes: https://github.com/nodejs/node/issues/31585
PR-URL: https://github.com/nodejs/node/pull/31594
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/cctest/node_test_fixture.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h index 709d68d8f4..291bc5962b 100644 --- a/test/cctest/node_test_fixture.h +++ b/test/cctest/node_test_fixture.h @@ -71,6 +71,7 @@ class NodeTestFixture : public ::testing::Test { static void SetUpTestCase() { if (!node_initialized) { + uv_os_unsetenv("NODE_OPTIONS"); node_initialized = true; int argc = 1; const char* argv0 = "cctest"; |