** Changed in: nunitv2
     Assignee: (unassigned) => Charlie Poole (charlie.poole)

** Changed in: nunitv2
    Milestone: None => 2.5.8

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

-- 
RequiresThreadAttribute not working on Windows 7 64-bit
https://bugs.launchpad.net/bugs/487999
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.

Status in NUnit V2 Test Framework: Fix Committed

Bug description:
Upgraded machine to windows7 64-bit.  Installed nunit 2.5.2.9222.  Ran 
nunit-gui under admin privileges, using nunittests for verification.  Tests 
fail repeatedly on the following:
at 
NUnit.Core.Tests.ThreadingTests.FixtureRequiresThread.RequiresThreadCanBeSetOnTestFixture()

Stack dump is:
NUnit.Core.Tests.ThreadingTests+FixtureRequiresThread.RequiresThreadCanBeSetOnTestFixture:
  Expected: String containing "TestSuiteThread"
  But was:  "   at System.Environment.get_StackTrace()
   at 
NUnit.Core.Tests.ThreadingTests.FixtureRequiresThread.RequiresThreadCanBeSetOnTestFixture()
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] 
arguments, SignatureStruct& sig, MethodAttributes methodAttributes, 
RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags 
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean 
skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags 
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at NUnit.Core.Reflect.InvokeMethod(MethodInfo method, Object fixture, 
Object[] args)
   at NUnit.Core.TestMethod.RunTestMethod(TestResult testResult)
   at NUnit.Core.TestMethod.doTestCase(TestResult testResult)
   at NUnit.Core.TestMethod.doRun(TestResult testResult)
   at NUnit.Core.TestMethod.Run(TestResult testResult)
   at NUnit.Core.NUnitTestMethod.Run(TestResult testResult)
   at NUnit.Core.TestMethod.Run(EventListener listener, ITestFilter filter)
   at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener 
listener, ITestFilter filter)
   at NUnit.Core.TestSuite.Run(TestResult suiteResult, EventListener listener, 
ITestFilter filter)
   at NUnit.Core.TestThread.RunTestProc()
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at 
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
 code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, 
ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()"
I did this a couple of times, and results were consistent. Also did it on 
another windows 7 64 bit machine.



_______________________________________________
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