Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Run test for autogenerated config in subprocess
Only a single version of a dotnet-core runtime can be loaded at a given
time. This off-loads one of our tests to a subprocess (the same pattern
would work if we did this for the other test). Could be cleaner, but
this will do for now.
  • Loading branch information
filmor committed Jan 3, 2023
commit 6bfddc4650fe3675088f9281fe608e37f7831a54
11 changes: 11 additions & 0 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ def test_coreclr(example_netcore):


def test_coreclr_autogenerated_runtimeconfig(example_netstandard):
from multiprocessing import get_context

p = get_context("spawn").Process(
target=_do_test_coreclr_autogenerated_runtimeconfig, args=(example_netstandard,)
)
p.start()
p.join()
p.close()


def _do_test_coreclr_autogenerated_runtimeconfig(example_netstandard):
from clr_loader import get_coreclr

coreclr = get_coreclr()
Expand Down