зеркало из https://github.com/mono/monocov.git
2004-05-13 Zoltan Varga <vargaz@freemail.hu>
* CoverageModel.cs: Invoke GetGuid dynamically since it is no longer public. svn path=/trunk/monocov/; revision=27294
This commit is contained in:
Родитель
cb0b39809f
Коммит
8e9a9873bb
|
@ -1,3 +1,8 @@
|
|||
2004-05-13 Zoltan Varga <vargaz@freemail.hu>
|
||||
|
||||
* CoverageModel.cs: Invoke GetGuid dynamically since it is no longer
|
||||
public.
|
||||
|
||||
2004-04-15 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
|
||||
*: README - nowadays it's mono --profile=xxx and not --profile:xxx
|
||||
|
||||
|
|
|
@ -84,9 +84,16 @@ public class CoverageModel : CoverageItem {
|
|||
|
||||
Assembly assembly = Assembly.Load (assemblyName);
|
||||
|
||||
if (assembly.GetLoadedModules ()[0].Mono_GetGuid () !=
|
||||
new Guid (guid)) {
|
||||
Console.WriteLine ("WARNING: Loaded version of assembly " + assembly + " is different from the version used to collect coverage data.");
|
||||
MethodInfo getguid = typeof (Module).GetMethod (
|
||||
"Mono_GetGuid", BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic,
|
||||
null, CallingConventions.Any, new Type [0], null);
|
||||
|
||||
if (getguid != null) {
|
||||
Guid assembly_guid = (Guid)getguid.Invoke (assembly.GetLoadedModules ()[0], new object [0]);
|
||||
Console.WriteLine (assembly_guid);
|
||||
if (assembly_guid != new Guid (guid)) {
|
||||
Console.WriteLine ("WARNING: Loaded version of assembly " + assembly + " is different from the version used to collect coverage data.");
|
||||
}
|
||||
}
|
||||
|
||||
MonoSymbolFile symbolFile;
|
||||
|
|
Загрузка…
Ссылка в новой задаче