Bug 3488 - testRefreshZombie(frysk.proc.TestRefresh)junit.framework.AssertionFailedError: Zombie child task count expected:<0> but was:<1>
Summary: testRefreshZombie(frysk.proc.TestRefresh)junit.framework.AssertionFailedError...
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 1582 3385 2654
  Show dependency treegraph
 
Reported: 2006-11-08 18:16 UTC by Andrew Cagney
Modified: 2008-10-21 21:40 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2006-11-08 18:16:46 UTC
testRefreshZombie(frysk.proc.TestRefresh)junit.framework.AssertionFailedError:
Zombie child task count expected:<0> but was:<1>
   at frysk.proc.TestRefresh.testRefreshZombie(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
Comment 1 Andrew Cagney 2006-11-26 21:27:58 UTC
This is a utrace bug, block on FC 6, not FC 5.
Comment 2 Andrew Cagney 2006-12-05 03:07:53 UTC
nettle$ uname -a
Linux nettle 2.6.18-1.2239.fc5 #1 Fri Nov 10 13:04:06 EST 2006 i686 i686 i386
GNU/Linux
There were 2 failures:
1) testProcRefresh(frysk.proc.TestRefresh)junit.framework.AssertionFailedError:
proc's task count after kills expected:<2> but was:<3>
   at frysk.proc.TestRefresh.testProcRefresh(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
2)
testRefreshZombie(frysk.proc.TestRefresh)junit.framework.AssertionFailedError:
Zombie child task count expected:<0> but was:<1>
   at frysk.proc.TestRefresh.testRefreshZombie(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)

Comment 3 Andrew Cagney 2006-12-05 03:21:04 UTC
test passes on toadstool: Linux toadstool.toronto.redhat.com 2.6.17-1.2174_FC5
#1 Tue Aug 8 15:30:55 EDT 2006 i686 i686 i386 GNU/Linux
Comment 4 Andrew Cagney 2006-12-05 03:29:42 UTC
Test fails in isolation, ya!

Running testProcRefresh(frysk.proc.TestRefresh) ...FAIL
  junit.framework.AssertionFailedError: proc's task count after kills
expected:<2> but was:<3>

Time: 0.046
There was 1 failure:
1) testProcRefresh(frysk.proc.TestRefresh)junit.framework.AssertionFailedError:
proc's task count after kills expected:<2> but was:<3>
   at frysk.proc.TestRefresh.testProcRefresh(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)
Comment 5 Andrew Cagney 2006-12-05 04:06:40 UTC
Previously a zombied process had no tasks, it now appears to have one:

nettle$ cat /proc/32193/task/32193/status
Name:   funit-child
State:  Z (zombie)
SleepAVG:       35%
Tgid:   32193
Pid:    32193
PPid:   32192
TracerPid:      0
Uid:    500     500     500     500
Gid:    500     500     500     500
FDSize: 0
Groups: 500 501
Threads:        1
SigQ:   7/12157
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000000000
SigCgt: 00000001a0413ac3
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
Comment 6 Andrew Cagney 2006-12-05 04:18:41 UTC
Downstream bug:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218404
Comment 7 Mark Wielaard 2008-03-13 22:04:02 UTC
frysk.proc.TestRefresh has been renamed to frysk.proc.live.TestRefresh
All those tests pass now:

./TestRunner frysk.proc.live.TestRefresh
Running testRepeatedHostRefresh(frysk.proc.live.TestRefresh) ...PASS
Running testProcAdditionAndRemoval(frysk.proc.live.TestRefresh) ...PASS
Running testDaemonAdditionAndRemoval(frysk.proc.live.TestRefresh) ...PASS
Running testParentChild(frysk.proc.live.TestRefresh) ...PASS
Running testRefreshDaemon(frysk.proc.live.TestRefresh) ...PASS
Running testRefreshZombie(frysk.proc.live.TestRefresh) ...PASS
Running testUnattachedSingleExec(frysk.proc.live.TestRefresh) ...PASS

Time: 0.607

OK (7 tests)

So we can probably close this one.