[Mono-dev] Mono and NMock2 - failing to run NMock2 with mono svn

Onur Gumus emperon at gmail.com
Tue Aug 7 08:46:31 EDT 2007


Just for your knowledge, although I haven't made a full comprehensive test,
Rhino Mocks is also seemed to work with mono 1.2.5 very well.

On 8/7/07, Mads Bondo Dydensborg <mbd at dbc.dk> wrote:
>
> onsdag 04 Juli 2007 skrev Mads Bondo Dydensborg:
> > fredag 29 juni 2007 16:22 skrev Mads Bondo Dydensborg:
> > > Hi there
>
> Hi again
>
> Just a note for the archive. This issue has been resolved (possibly
> sooner) in
> revision:
>
> $ mono --version
> Mono JIT compiler version 1.2.5 (/trunk/ r83560)
> Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
>         TLS:           __thread
>         GC:            Included Boehm (with typed GC)
>         SIGSEGV:       altstack
>         Architecture:  x86
>         Disabled:      none
>
> Thanks to whomever fixed it, and regards.
>
> Regards,
>
> Mads
>
>
> >
> > Hi there - just a repost to raise this issue again.
> >
> > Any feedback will be most appreciated.
> >
> > Regards,
> >
> > Mads
> >
> > >
> > > I have observed that my nmock2 tests have started to fail with the
> version
> > of
> > > mono I compile from svn. Running this command:
> > >
> > > $ echo $MONO_PATH
> >
> >
> /home/madsdyd/xintegra/trunk/Components/Bin/:/home/madsdyd/xintegra/trunk/Lib/NUnit:/home/madsdyd/xintegra/trunk/Lib/NMock:/home/madsdyd/xintegra/trunk/Lib/NLog/Mono
> > > $ which mono
> > > /usr/local/mono-svn/bin/mono
> > >  $ mono --version
> > > Mono JIT compiler version 1.2.4 (/trunk/ r81006)
> > > Copyright (C) 2002-2007 Novell, Inc and Contributors.
> www.mono-project.com
> > >         TLS:           __thread
> > >         GC:            Included Boehm (with typed GC)
> > >         SIGSEGV:       normal
> > >         Architecture:  x86
> > >         Disabled:      none
> > > $
> > >
> >
> mono --debug /home/madsdyd/xintegra/trunk/Lib/NUnit/nunit-console.exe../Bin/Debug/DBC.ORM.dll
> > >
> > > fails with:
> > >
> > > Failures:
> > > 1) SQLBuilderTest.SelectOrAndSQL : System.InvalidCastException :
> Cannot
> cast
> > > from source type to destination type.
> > >   at SQLBuilderTest.SetUp () [0x00035]
> > >
> >
> in
> /home/madsdyd/xintegra/trunk/Components/DBC.ORM/UnitTest/SQLBuilderTest.cs:90
> > >   at <0x00000> <unknown method>
> > >   at (wrapper managed-to-native)
> System.Reflection.MonoMethod:InternalInvoke
> > > (object,object[])
> > >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
> BindingFlags
> > > invokeAttr, System.Reflection.Binder binder, System.Object[]
> parameters,
> > > System.Globalization.CultureInfo culture) [0x00056]
> > >
> >
> in
> /home/compile/Compile/Mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:146
> > >
> > > The offending statement is:
> > >
> > >       mockProvider = mocks.NewMock<IProvider>();
> > >
> > > AFAICT the assignment does not matter, the failure is somewhere in
> > NewMock(?)
> > >
> > > However, running with stable mono:
> > >
> > > $ mono --version
> > > Mono JIT compiler version 1.2.3.1, (C) 2002-2006 Novell, Inc and
> > Contributors.
> > > www.mono-project.com
> > >         TLS:           __thread
> > >         GC:            Included Boehm (with typed GC)
> > >         SIGSEGV:       normal
> > >         Architecture:  x86
> > >         Disabled:      none
> > >
> > > The test passes as expected - with no fails (neither from NUnit or
> Mono).
> In
> > > both cases, the compilation of my source tree has been using the svn
> version
> > > of mono/gmcs.
> > >
> > > So, two questions:
> > >
> > > a) Is anyone else experiencing this issue?
> > > b) Any advise on resolving it?
> > >
> > > Thanks in advance, and regards,
> > >
> > > Mads
> > >
> > > --
> > > Med venlig hilsen/Regards
> > >
> > > Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo
> > Dydensborg
> > > Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44
> 86
> 77
> > 34
> > >
> > > _______________________________________________
> > > Mono-devel-list mailing list
> > > Mono-devel-list at lists.ximian.com
> > > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> > >
> > >
> >
> > --
> > Med venlig hilsen/Regards
> >
> > Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo
> Dydensborg
> > Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86
> 77
> 34
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >
> >
>
>
>
> --
> Med venlig hilsen/Regards
>
> Systemudvikler/Systemsdeveloper cand.scient.dat, Ph.d., Mads Bondo
> Dydensborg
> Dansk BiblioteksCenter A/S, Tempovej 7-11, 2750 Ballerup, Tlf. +45 44 86
> 77 34
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



-- 
Warning: If you are reading this then this warning is for you. Every word
you read of this useless fine print is another second off your life. Don't
you have other things to do? Is your life so empty that you honestly can't
think of a better way to spend these moments? Or are you so impressed with
authority that you give respect and credence to all that claim it? Do you
read everything you're supposed to read? Do you think every thing you're
supposed to think? Buy what you're told to want? Get out of your apartment.
Meet a member of the opposite sex. Stop the excessive shopping and
masturbation.Quit your job. Start a fight. Prove you're alive. If you don't
claim your humanity you will become a statistic. You have been warned - Onur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070807/40763212/attachment.html 


More information about the Mono-devel-list mailing list