← Back to team overview

nunit-core team mailing list archive

[Bug 487999] Re: Installation testsuite fails on Windows 7 64 bit

 

Looking at this again, I see I misread the "stacktrace" It's not really
a stacktrace of the error but an NUnit error message.

The test in question is examining the stacktrace to see if it contains
the class TestSuiteThread, which would be present if the RequiresThread
attribute were working correctly. It does not appear to be working. I'm
renaming this bug accordingly and updating the priority.

** Summary changed:

- Installation testsuite fails on Windows 7 64 bit
+ RequiresThreadAttribute not working on Windows 7 64-bit

** Tags removed: easy

-- 
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: Triaged

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.