Stop doesn't

22 views
Skip to first unread message

Alan Baljeu

unread,
May 25, 2012, 3:21:35 PM5/25/12
to Nunit Discuss
2.5.8.10295, .net 2.0.

I'm running a single test, a TCP client function.  it sends data to a server, calls ReadByte.  Then I press the Stop button on NUnit.  Instead of aborting the test, it just makes the Stop button grey, and the client test is still waiting for input.  Help?

Alan Baljeu


Charlie Poole

unread,
Jul 6, 2012, 9:56:27 AM7/6/12
to nunit-...@googlegroups.com
Hi Alan,

This is quite old, but I don't see any response to it so far...

The NUnit Stop button attempts to kill the thread running the tests.
There are various ways that a thread may refuse to be killed in .NET
and code that does the killing can only do so much to guarantee it.

The logic for killing threads in NUnit 2.6 is a bit more sophisticated
than the version you are using and I think that this particular issue
(waiting for IO) may be resolved.

Charlie
> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To post to this group, send email to nunit-...@googlegroups.com.
> To unsubscribe from this group, send email to
> nunit-discus...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nunit-discuss?hl=en.

Alan Baljeu

unread,
Jul 6, 2012, 10:32:53 AM7/6/12
to nunit-...@googlegroups.com
Wow, a response!  I'm not presently on that project but when I am again I will definitely get 2.6 to see if it helps.

 
Alan Baljeu

Reply all
Reply to author
Forward
0 new messages