[lldb-dev] [Bug 20545] New: PythonSynthDataFormatterTestCase.test_with_dwarf_and_run_command has all 'expect' output on stdout/test log

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 5 10:43:23 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20545

            Bug ID: 20545
           Summary: PythonSynthDataFormatterTestCase.test_with_dwarf_and_r
                    un_command has all 'expect' output on stdout/test log
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: emaste at freebsd.org
    Classification: Unclassified

Test file:
test/functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py

Initially lldb's output as handled by self.expect() is not sent to stdout /
test log.  After executing
> self.runCmd("script from fooSynthProvider import *")
the output makes it through.

.=success F=fail E=error s=skipped x=expected-fail u=unexpected-success

<<< script command executed here >>>
(foo) f00_1 = (a = 0, fake_a = 16777216, r = 33)
(foo) f00_1 = (a = 0, fake_a = 16777216, r = 33)
(int) f00_1.fake_a = 16777216
(int) f00_1[1] = 16777216

This puts a lot of junk in the log, and confuses the buildbot parser, because
it tries to parse lines starting with "Category: " as test result codes.  See
http://lab.llvm.org:8011/builders/lldb-x86_64-freebsd

output snippet:

error: cannot add filter for type foo when synthetic is defined in same
category!
error: cannot add synthetic for type foo when filter is defined in same
category!
(foo) f00_1 = (a = 0, fake_a = 16777216, r = 33)
(foo) f00_1 = (a = 0, fake_a = 16777216, r = 33)
(int) f00_1.fake_a = 16777216
(int) f00_1[1] = 16777216
(foo) f00_1 = fake_a=16777216
(foo) f00_1 = fake_a=16777216
Process 34682 stopped
(foo) f00_1 = (a = 1, fake_a = 16777216, r = 33)
(int) $0 = 280
(foo) f00_1 = (a = 280, fake_a = 16777217, r = 33)
(foo *) f00_ptr = 0x0000000801c06060 {
  a = 12
  fake_a = 218103808
  r = 45
}
(foo) f00_1 = (a = 280, fake_a = 16777217, r = 33)
(foo *) f00_ptr = 0x0000000801c06060 {
  a = 12
  fake_a = 218103808
  r = 45
}
(foo) f00_1 = (b = 1, j = 17)
(foo *) f00_ptr = 0x0000000801c06060 {
  b = 13
  j = 29
}
-----------------------
Category: objc (enabled)
-----------------------
Class:  Generator at 0x804d9b320 - Class synthetic children
-----------------------
Category: CoreFoundation (enabled)
-----------------------
CFArrayRef:  Generator at 0x804db1410 - NSArray synthetic children
CFDictionaryRef:  Generator at 0x804db1910 - NSDictionary synthetic children
...

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


More information about the lldb-dev mailing list