[Mono-dev] app-refl-load

Aleksey Kliger alklig at microsoft.com
Tue Aug 29 20:09:06 UTC 2017

Oh, one other thing: the tests run via the test-runner.exe (*) so if you just set the MONO_LOG_{MASK,LEVEL} vars, you’ll get the loader behavior for the test runner not the test.  So what you really want to do is figure out how the test runner invokes mono to run the test. (Basically --runtime commandinline arg of the test runner is the mono to invoke to start the testcase, --runtime-args are args to pass to it, --mono-path and --mono-gac-prefix are MONO_PATH and MONO_GAC_PREFIX environment vars to set for the testcase).  I should’ve made it easier to just run the bare test, sorry.

(*): the test runner babysits the tests and kills them when they time out, collects output and writes TestResult-*.xml files for Jenkins to consume.


On 8/29/17, 15:46, "Mono-devel-list on behalf of Aleksey Kliger via Mono-devel-list" <mono-devel-list-bounces at lists.dot.net<mailto:mono-devel-list-bounces at lists.dot.net> on behalf of mono-devel-list at lists.dot.net<mailto:mono-devel-list at lists.dot.net>> wrote:


That test is run in a couple of different configurations (see mono/tests/testing_gac/Makefile.am) which try to test loading strongly named assemblies either from the MONO_PATH or from the Mono GAC, occasionally when there are other versions of the same assembly (ie, same simple name, same public key token, different Version) also in the GAC or on the MONO_PATH.
So the first thing to figure out is which instance of the test is failing.   If you run make with V=1 it should print out the exact command that it tries to run.

In any case exit code of 1 means AppDomain.CurrentDomain.Load(AssemblyName) returned null for some reason.

I find it helpful to set MONO_LOG_MASK=asm MONO_LOG_LEVEL=debug when running loader tests to figure out what’s going on.

On 8/29/17, 15:29, "Mono-devel-list on behalf of Neale Ferguson" <mono-devel-list-bounces at lists.dot.net<mailto:mono-devel-list-bounces at lists.dot.net> on behalf of neale at sinenomine.net<mailto:neale at sinenomine.net>> wrote:

This test fails on s390x with Rc=1 which indicates that
AppDomain.CurrentDomain.Load (n) is returning NULL. What type of things
should I look for?

Mono-devel-list mailing list
Mono-devel-list at lists.dot.net<mailto:Mono-devel-list at lists.dot.net>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-devel-list/attachments/20170829/2ca9227a/attachment-0001.html>

More information about the Mono-devel-list mailing list