From d2fbe80a4a2f99a6a29f7d63a1b7d2531a81581a Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 31 Jan 2020 20:31:33 +0100 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Gus Caplan Reviewed-By: Michael Dawson Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Rich Trott --- test/cctest/node_test_fixture.h | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cctest/node_test_fixture.h b/test/cctest/node_test_fixture.h index e71d800c25f858..465f1c0b45b36c 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";