Re: app-refl-load
Aleksey Kliger via Mono-devel-list <[email protected]> Tue, 29 Aug 2017 20:09:06 +0000
| Newsgroups | gmane.comp.gnome.mono.devel |
|---|---|
| Message-ID | <[email protected]> |
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" <[email protected]<mailto:[email protected]> on behalf of [email protected]<mailto:[email protected]>> 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" <[email protected]<mailto:[email protected]> on behalf of [email protected]<mailto:[email protected]>> 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
[email protected]<mailto:[email protected]>
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
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.dot.net/mailman/listinfo/mono-devel-list