sdk icon indicating copy to clipboard operation
sdk copied to clipboard

corehost does not return an error code in unix when it fails to find coreclr

Open livarcocc opened this issue 10 years ago • 5 comments

Use this branch: https://github.com/livarcocc/cli-1/tree/more_test_params

Steps to reproduce

Change the test It_returns_a_failure_when_it_fails_to_run_the_tests at GivenThatWeWantToRunTestsInTheConsole. Change the WindowsFactOnly to Fact and run the test.

Expected behavior

The test should pass because the command result should indicate a failure.

Actual behavior

It does not fail, even though the execution of the test command did fail.

livarcocc avatar Mar 17 '16 22:03 livarcocc

This is on ubuntu?

schellap avatar Mar 17 '16 22:03 schellap

Also, it looks like on Windows, a deps file in a folder that does not exist is causing a crash:

> corehost.exe C:\Users\anurse\.nuget\packages\dotnet-test-xunit\1.0.0-dev-91790-12\lib\netstandardapp1.5\dotnet-test-xunit.dll --depsfile C:\does\not\exist.deps.json


Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

image

This manifests as a crash dialog during one of our dotnet test test cases, which I've had to disable for now.

analogrelay avatar Mar 22 '16 23:03 analogrelay

Moving to RTM.

schellap avatar Apr 01 '16 17:04 schellap

@schellap what is the status of this?

thesmithee avatar Jan 15 '17 16:01 thesmithee

If this is still an issue, it should be tracked in core-setup.

TheRealPiotrP avatar Jan 19 '17 09:01 TheRealPiotrP