[Lldb-commits] [lldb] r242573 - Make this test case be somewhat less verbose when not asked to
Enrico Granata
egranata at apple.com
Fri Jul 17 14:11:46 PDT 2015
Author: enrico
Date: Fri Jul 17 16:11:46 2015
New Revision: 242573
URL: http://llvm.org/viewvc/llvm-project?rev=242573&view=rev
Log:
Make this test case be somewhat less verbose when not asked to
Modified:
lldb/trunk/test/expression_command/formatters/TestFormatters.py
Modified: lldb/trunk/test/expression_command/formatters/TestFormatters.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/formatters/TestFormatters.py?rev=242573&r1=242572&r2=242573&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/formatters/TestFormatters.py (original)
+++ lldb/trunk/test/expression_command/formatters/TestFormatters.py Fri Jul 17 16:11:46 2015
@@ -50,12 +50,13 @@ class ExprFormattersTestCase(TestBase):
lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, loc_exact=True)
self.runCmd("run", RUN_SUCCEEDED)
- self.runCmd("script import formatters")
- self.runCmd("script import foosynth")
+ self.runCmd("command script import formatters.py")
+ self.runCmd("command script import foosynth.py")
- self.runCmd("frame variable foo1 --show-types")
- self.runCmd("frame variable foo1.b --show-types")
- self.runCmd("frame variable foo1.b.b_ref --show-types")
+ if self.TraceOn():
+ self.runCmd("frame variable foo1 --show-types")
+ self.runCmd("frame variable foo1.b --show-types")
+ self.runCmd("frame variable foo1.b.b_ref --show-types")
self.expect("expression --show-types -- *(new foo(47))",
substrs = ['(int) a = 47', '(bar) b = {', '(int) i = 94', '(baz) b = {', '(int) k = 99'])
More information about the lldb-commits
mailing list