nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01209
[Bug 487999] Re: RequiresThreadAttribute not working on Windows 7 64-bit
** Branch linked: lp:nunitv2
--
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.