[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.

-Aleksey

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:

Neale,

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.

Cheers,
Aleksey
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>
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.dot.net%2Fmailman%2Flistinfo%2Fmono-devel-list&data=02%7C01%7Calklig%40microsoft.com%7Cff57c1c0abd94bc103f908d4ef144bba%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636396317846369225&sdata=PtixWLMGHtw68tdZzq6lKu9%2BbU0K3kZD93PxfRKecTI%3D&reserved=0

-------------- 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