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

Bug ID 20545
Summary PythonSynthDataFormatterTestCase.test_with_dwarf_and_run_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@cs.uiuc.edu
Reporter emaste@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](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
}