This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Conversation
This is a hopefully short-term hack which allows files specified as inputs to ILC to be actually native binaries that we ignore and proceed with compilation. The CoreCLR drops we test against contain a mixture of managed and native binaries in test folders in some cases. Also, add a quality of life switch to runtest.cmd (/CoreCLRSingleTest) that allows specifying a single CoreCLR test to run by executable path. This downloads the test blob and sets the correct environment variables first.
Contributor
Author
|
@MichalStrehovsky PTAL. |
| var module = typeSystemContext.GetModuleFromPath(inputFile.Value); | ||
| inputFilePaths.Add(inputFile.Key, inputFile.Value); | ||
| } | ||
| catch (Exception) |
Member
There was a problem hiding this comment.
Can we catch something more specific? I want to make sure "file doesn't exist", "can't read the file", etc. won't turn into these silent failures.
Contributor
Author
There was a problem hiding this comment.
Done - I used InvalidOperationException, which is what we throw if we can't crack the metadata.
* Tighten up the exception catch so it just filters
InvalidOperationException, which is what is thrown if the file contains
no metadata.
* Fix regular CoreCLR tests caused by batch exploding if it had to deal
with "if not exist ("
6 of 21 tasks
MichalStrehovsky
approved these changes
Feb 22, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a hopefully short-term hack which allows files specified as
inputs to ILC to be actually native binaries that we ignore and proceed
with compilation. The CoreCLR drops we test against contain a mixture
of managed and native binaries in test folders in some cases.
Also, add a quality of life switch to runtest.cmd (/CoreCLRSingleTest)
that allows specifying a single CoreCLR test to run by executable path.
This downloads the test blob and sets the correct environment variables
first.