** Changed in: nunitv2
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/669317

Title:
  Loading test in separate process causes exception under Mono+Linux

Status in NUnit V2 Test Framework:
  Fix Released

Bug description:
  When loading a test in a separate process under Linux, the following 
exception is thrown...

** 
(/home/charlie/Dev/NUnit/nunit-2.5/work/src/bin/Debug/nunit-agent.exe:12221): 
WARNING **: The following assembly referenced from 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/bin/Debug/nunit-agent.exe could not 
be loaded:
     Assembly:   nunit.core    (assemblyref_index=1)
     Version:    2.5.9.0
     Public Key: 96d09a1eb7f44a77
The assembly was not found in the Global Assembly Cache, a path listed in the 
MONO_PATH environment variable, or in the location of the executing assembly 
(/home/charlie/Dev/NUnit/nunit-2.5/work/src/bin/Debug/).


** 
(/home/charlie/Dev/NUnit/nunit-2.5/work/src/bin/Debug/nunit-agent.exe:12221): 
WARNING **: Could not load file or assembly 'nunit.core, Version=2.5.9.0, 
Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies.

Unhandled Exception: System.TypeLoadException: Could not load type 
'NUnit.Agent.NUnitTestAgent' from assembly 'nunit-agent, Version=2.5.9.0, 
Culture=neutral, PublicKeyToken=null'.
Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the 
target of an invocation. ---> System.NullReferenceException: Object reference 
not set to an instance of an object
  at NUnit.Util.CategoryManager.AddCategories (ITest test) [0x00000] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/ClientUtilities/util/CategoryManager.cs:32
 
  at NUnit.Util.CategoryManager.AddAllCategories (ITest test) [0x00000] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/ClientUtilities/util/CategoryManager.cs:38
 
  at NUnit.Util.TestLoader.GetCategories () [0x00006] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/ClientUtilities/util/TestLoader.cs:670
 
  at (wrapper remoting-invoke-with-check) NUnit.Util.TestLoader:GetCategories ()
  at NUnit.UiKit.TestTree.events_TestReloaded (System.Object sender, 
NUnit.Util.TestEventArgs args) [0x00000] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/GuiComponents/UiKit/TestTree.cs:698 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke 
(object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags 
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, 
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags 
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, 
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] 
parameters) [0x00000] in <filename unknown>:0 
  at NUnit.UiKit.GuiTestEventDispatcher.InvokeHandler (System.MulticastDelegate 
handlerList, System.EventArgs e) [0x00054] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/GuiComponents/UiKit/GuiTestEventDispatcher.cs:45
 
System.NullReferenceException: Object reference not set to an instance of an 
object
  at NUnit.Core.ProxyTestRunner.BeginRun (EventListener listener, ITestFilter 
filter) [0x00007] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/NUnitCore/core/ProxyTestRunner.cs:147
 
  at NUnit.Util.TestLoader.RunTests (ITestFilter filter) [0x00038] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/ClientUtilities/util/TestLoader.cs:652
 
  at NUnit.UiKit.TestSuiteTreeView.RunTests (NUnit.Core.ITest[] tests, Boolean 
ignoreCategories) [0x00024] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/GuiComponents/UiKit/TestSuiteTreeView.cs:1007
 
  at NUnit.UiKit.TestSuiteTreeView.RunSelectedTests () [0x00007] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/GuiComponents/UiKit/TestSuiteTreeView.cs:991
 
  at (wrapper remoting-invoke-with-check) 
NUnit.UiKit.TestSuiteTreeView:RunSelectedTests ()
  at NUnit.UiKit.TestTree.RunSelectedTests () [0x00000] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/GuiComponents/UiKit/TestTree.cs:595 
  at (wrapper remoting-invoke-with-check) NUnit.UiKit.TestTree:RunSelectedTests 
()
  at NUnit.Gui.NUnitForm.runButton_Click (System.Object sender, 
System.EventArgs e) [0x00000] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/GuiRunner/nunit-gui/NUnitForm.cs:1579
 
  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000] in 
<filename unknown>:0 
  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000] in 
<filename unknown>:0 
  at System.Windows.Forms.ButtonBase.OnMouseUp 
(System.Windows.Forms.MouseEventArgs mevent) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs 
mevent) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) 
[0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) 
[0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m) 
[0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m) 
[0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage 
(System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc 
(System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr 
wParam, IntPtr lParam) [0x00000] in <filename unknown>:0 
Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the 
target of an invocation. ---> System.NullReferenceException: Object reference 
not set to an instance of an object
  at NUnit.Gui.NUnitForm.OnTestProjectUnloading (System.Object sender, 
NUnit.Util.TestEventArgs e) [0x00021] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/GuiRunner/nunit-gui/NUnitForm.cs:1631
 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke 
(object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags 
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, 
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags 
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, 
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] 
parameters) [0x00000] in <filename unknown>:0 
  at NUnit.UiKit.GuiTestEventDispatcher.InvokeHandler (System.MulticastDelegate 
handlerList, System.EventArgs e) [0x00054] in 
/home/charlie/Dev/NUnit/nunit-2.5/work/src/GuiComponents/UiKit/GuiTestEventDispatcher.cs:45
 

Under Windows, the test assembly loads normally.



_______________________________________________
Mailing list: https://launchpad.net/~nunit-core
Post to     : nunit-core@lists.launchpad.net
Unsubscribe : https://launchpad.net/~nunit-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to