From: <ric...@us...> - 2009-11-15 15:40:01
|
Revision: 4832 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4832&view=rev Author: ricbrown Date: 2009-11-15 15:39:52 +0000 (Sun, 15 Nov 2009) Log Message: ----------- Added compiler directives to allow tests to pass in Release build. Modified Paths: -------------- trunk/nhibernate/src/NHibernate.ByteCode.Castle.Tests/ProxyInterface/CastleProxyImpl.cs trunk/nhibernate/src/NHibernate.ByteCode.LinFu.Tests/ProxyInterface/MyProxyImpl.cs trunk/nhibernate/src/NHibernate.ByteCode.Spring.Tests/ProxyInterface/MyProxyImpl.cs Modified: trunk/nhibernate/src/NHibernate.ByteCode.Castle.Tests/ProxyInterface/CastleProxyImpl.cs =================================================================== --- trunk/nhibernate/src/NHibernate.ByteCode.Castle.Tests/ProxyInterface/CastleProxyImpl.cs 2009-11-13 16:48:48 UTC (rev 4831) +++ trunk/nhibernate/src/NHibernate.ByteCode.Castle.Tests/ProxyInterface/CastleProxyImpl.cs 2009-11-15 15:39:52 UTC (rev 4832) @@ -9,11 +9,13 @@ [Serializable] public class CastleProxyImpl : CastleProxy { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] private static void Level1() { Level2(); } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] private static void Level2() { throw new ArgumentException("thrown from Level2"); Modified: trunk/nhibernate/src/NHibernate.ByteCode.LinFu.Tests/ProxyInterface/MyProxyImpl.cs =================================================================== --- trunk/nhibernate/src/NHibernate.ByteCode.LinFu.Tests/ProxyInterface/MyProxyImpl.cs 2009-11-13 16:48:48 UTC (rev 4831) +++ trunk/nhibernate/src/NHibernate.ByteCode.LinFu.Tests/ProxyInterface/MyProxyImpl.cs 2009-11-15 15:39:52 UTC (rev 4832) @@ -4,11 +4,13 @@ { public class MyProxyImpl: IMyProxy { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] private static void Level1() { Level2(); } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] private static void Level2() { throw new ArgumentException("thrown from Level2"); Modified: trunk/nhibernate/src/NHibernate.ByteCode.Spring.Tests/ProxyInterface/MyProxyImpl.cs =================================================================== --- trunk/nhibernate/src/NHibernate.ByteCode.Spring.Tests/ProxyInterface/MyProxyImpl.cs 2009-11-13 16:48:48 UTC (rev 4831) +++ trunk/nhibernate/src/NHibernate.ByteCode.Spring.Tests/ProxyInterface/MyProxyImpl.cs 2009-11-15 15:39:52 UTC (rev 4832) @@ -4,11 +4,13 @@ { public class MyProxyImpl: IMyProxy { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] private static void Level1() { Level2(); } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] private static void Level2() { throw new ArgumentException("thrown from Level2"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |