[lldb-dev] [Bug 23181] Some lldb-server tests become zombies

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 13 09:56:23 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23181

Ilia <ki.stfu at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ki.stfu at gmail.com,
                   |                            |lldb-dev at cs.uiuc.edu

--- Comment #5 from Ilia <ki.stfu at gmail.com> ---
Also, the
RegisterCommandsTestCase.test_convenience_registers_16bit_with_process_attach
test leaves a zombie process.

Prof:
1. Apply the following patch:
```
$ svn diff
Index: test/unittest2/case.py
===================================================================
--- test/unittest2/case.py      (revision 234750)
+++ test/unittest2/case.py      (working copy)
@@ -330,6 +330,9 @@
                 startTestRun()

         self._resultForDoCleanups = result
+
+        import os
+        os.system("echo before '%s' = `ps x | grep Z | grep a.out | wc -l`" %
self.__str__())
         result.startTest(self)

         testMethod = getattr(self, self._testMethodName)
@@ -396,6 +399,7 @@
                 stopTestRun = getattr(result, 'stopTestRun', None)
                 if stopTestRun is not None:
                     stopTestRun()
+        os.system("echo after '%s' = `ps x | grep Z | grep a.out | wc -l`" %
self.__str__())

     def doCleanups(self):
         """Execute all cleanup functions. Normally called for you after
```
2. run all tests: ./dotest.py --executable $INSTALLDIR/bin/lldb
1>$INSTALLDIR/test_out.log 2>&1
3. analyze test_out.log:
```
before test_convenience_registers (TestRegisters.RegisterCommandsTestCase) =
452
.after test_convenience_registers (TestRegisters.RegisterCommandsTestCase) =
452
before test_convenience_registers_16bit_with_process_attach
(TestRegisters.RegisterCommandsTestCase) = 452
.after test_convenience_registers_16bit_with_process_attach
(TestRegisters.RegisterCommandsTestCase) = 453
before test_convenience_registers_with_process_attach
(TestRegisters.RegisterCommandsTestCase) = 453
.after test_convenience_registers_with_process_attach
(TestRegisters.RegisterCommandsTestCase) = 453
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150413/364ffbed/attachment.html>


More information about the lldb-dev mailing list