Registry Mirror
Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Conversation

@nattress

Copy link
Copy Markdown
Contributor

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.

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.
@nattress

Copy link
Copy Markdown
Contributor Author

@MichalStrehovsky PTAL.

Comment thread src/ILCompiler/src/Program.cs Outdated
var module = typeSystemContext.GetModuleFromPath(inputFile.Value);
inputFilePaths.Add(inputFile.Key, inputFile.Value);
}
catch (Exception)

@MichalStrehovsky MichalStrehovsky Feb 21, 2017 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ("
@MichalStrehovsky MichalStrehovsky mentioned this pull request Feb 22, 2017
6 of 21 tasks
@nattress
nattress merged commit 2f23ab5 into dotnet:master Feb 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants