PNUnit Hangs on Simple Test

Bug #498689 reported by Charlie Poole
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
NUnit Framework
Triaged
High
Unassigned

Bug Description

There's currently a problem with pNUnit where the notification of results
simply hangs. To repro,

1) Build latest source with nant build.
2) Change to build\net\2.0\debug, assuming you're on
a windows machine. I haven't verified this problem
on linux yet.
3) copy agent.log.conf to launcher.log.conf
4) runpnunit.bat

The agent window shows the following:

INFO PNUnit.Agent.PNUnitAgent - Registering channel on port 8080 INFO
PNUnit.Agent.PNUnitAgent - RunTest called for Test Testing, AssemblyName p
nunit.tests.dll, TestToRun TestLibraries.Testing.EqualTo19 INFO
PNUnit.Agent.PNUnitTestRunner - Spawning a new thread INFO
PNUnit.Agent.PNUnitTestRunner - Thread entered for Test Testing:TestLibrar
ies.Testing.EqualTo19 Assembly pnunit.tests.dll INFO
PNUnit.Agent.PNUnitTestRunner - Notifying the results

The launcher window shows this:

INFO launcher - Test 1 of 1
DEBUG launcher - Thread created for TestGroup Testing with 1 tests INFO
launcher - Starting Testing test Testing on localhost:8080 DEBUG launcher -
Thread going to wait for results for TestGroup Testing

It appears that NotifyResult() in the launcher is never entered. A problem
with remoting?

[From SF:2766410]

Comment from SF:

As a temporary fix, pnunit.tests.dll is in the same directory as
pnunit-agent.exe and pnunit-launcher.exe. The nunit.framework and
pnunit.framework assemblies are being copied to the
same directory.

PNUnit should allow the same flexibility of appbase and probing paths that
NUnit itself supports.

Tags: feature pnunit
description: updated
tags: added: feature
Changed in nunitv2:
status: New → Triaged
importance: Undecided → High
tags: added: pnunit
Revision history for this message
Olivier Toupin (olivier-toupin) wrote :

Don't if it's exactly that bug but found a problem in PNUnit that cause PNUnit to hang at NotifyResult. In Agent, PNUnitTestRunner.cs if a exception occur in the finally @ ThreadProc:124, the agent just seems to hang or crash without error.

In my case if I put a invalid test name in my *.conf file, FindResult return null for result and BuildResult check for IsSuccess causing NullReferenceException

//Fix for my case
--return null @ FindResult:196
++return result @ FindResult:196

Also comparing to PNUnit version I have downloaded your PNUnit seems to be outdated, the PNUnitTestRunner.cs is signicantly different.

Changed in nunitv2:
milestone: none → 2.6.0
Changed in nunitv2:
milestone: 2.6.0 → none
affects: nunitv2 → nunit-3.0
Revision history for this message
ExM (explorermachine) wrote :

may be my editing is appropriate here?

https://bugs.launchpad.net/nunitv2/+bug/860558

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.