summaryrefslogtreecommitdiff
path: root/tests/runtest.py
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-11-21 08:37:35 -0800
committerGitHub <noreply@github.com>2018-11-21 08:37:35 -0800
commit844aa45629e683d546e98e4a8bb5dd660f8dacae (patch)
treed42d9d3e4ae39df7f64014e07147bda713d0ade3 /tests/runtest.py
parentc94d8e68222d931d4bb1c4eb9a52b4b056e85f12 (diff)
downloadcoreclr-844aa45629e683d546e98e4a8bb5dd660f8dacae.tar.gz
coreclr-844aa45629e683d546e98e4a8bb5dd660f8dacae.tar.bz2
coreclr-844aa45629e683d546e98e4a8bb5dd660f8dacae.zip
Ensuring that gc_stress and gc_stress_c are marked global when writing, but not when reading (#21128)
Diffstat (limited to 'tests/runtest.py')
-rwxr-xr-xtests/runtest.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/runtest.py b/tests/runtest.py
index dee7c3a934..360afc3901 100755
--- a/tests/runtest.py
+++ b/tests/runtest.py
@@ -426,6 +426,7 @@ def create_and_use_test_env(_os, env, func):
in runtest.sh.
"""
global gc_stress_c
+ global gc_stress
complus_vars = defaultdict(lambda: None)
@@ -500,6 +501,7 @@ def get_environment(test_env=None):
influencing the test runner.
"""
global gc_stress_c
+ global gc_stress
complus_vars = defaultdict(lambda: "")
@@ -730,8 +732,7 @@ def run_tests(host_os,
test_native_bin_location : Native test components, None and windows.
test_env(str) : path to the test_env to be used
"""
- global gc_stress
-
+
# Setup the dotnetcli location
dotnetcli_location = os.path.join(coreclr_repo_location, "Tools", "dotnetcli", "dotnet%s" % (".exe" if host_os == "Windows_NT" else ""))
@@ -1970,8 +1971,6 @@ def do_setup(host_os,
core_root,
unprocessed_args,
test_env):
- global gc_stress_c
-
# Setup the tools for the repo.
setup_tools(host_os, coreclr_repo_location)