MudassarRasool / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Test assembly that depends on a Win32 DLL fails to load in Isolated Process #649

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. A C++ CLR test assembly that uses a Win32 C++ DLL in the same directory.
2. Load in Icarus using IsolatedProcess

What is the expected output? What do you see instead?

I expect the tests to load and run, they do not. If I use Local or
IsolatedAppDomain it works.

What version of the product are you using? On what operating system?

3.1 Release version.

Please provide any additional information below.

I am not using shadow copying. I have tried setting hint paths, application
base directory and working directory for the project.

If you copy the Gallio binaries into the test directory it works. Is it
enough to just set the working directory of the Gallio host process?
Multiple .NET assemblies work fine. Are you using a resolve handler to load
assemblies? If so, that won't work for native libraries.

The attached solution demonstrates this.

Original issue reported on code.google.com by rpro...@gmail.com on 8 Apr 2010 at 1:38

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by grahamr...@gmail.com on 4 May 2010 at 8:28

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I am still seeing this in 3.2 with another large project, but the test project 
above now works fine. Sorry, I cannot come up with a simple test case at the 
moment.

Original comment by rpro...@gmail.com on 9 Nov 2010 at 9:49