<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 18, 2016, at 2:45 PM, Zachary Turner <<a href="mailto:zturner@google.com" class="">zturner@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Enrico,<div class=""><br class=""></div><div class="">These tests are failing on Windows.  They're new tests so not really a regression, but do you have any idea what might be wrong?  Basically, when the test runs, the help po is displaying the full output of "help expression".  But strangely, if I go into lldb and run "help po" there, it's correct and the output would pass the test.</div><div class=""><br class=""></div><div class="">So something is different about running through the public api or running help inside of lldb</div></div><br class=""></div></blockquote><div><br class=""></div><div>This doesn’t seem to have much to do with “the public API” since it’s a lame plain old command-line test</div><div><br class=""></div><div>Honestly, no, I am not sure what would be special about this on Windows. The only thing I can think of is that maybe - for whatever reason - the test suite is running against an older LLDB, but that seems fairly unlikely to go unnoticed, now does it?</div><div><br class=""></div><div>Your best bet may be to put a sleep() call in the test case to give yourself a chance to attach with a debugger - and then step through the “help” code as things unfold</div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Mar 14, 2016 at 6:47 PM Enrico Granata via lldb-commits <<a href="mailto:lldb-commits@lists.llvm.org" class="">lldb-commits@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: enrico<br class="">
Date: Mon Mar 14 20:43:00 2016<br class="">
New Revision: 263520<br class="">
<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=263520&view=rev" rel="noreferrer" target="_blank" class="">http://llvm.org/viewvc/llvm-project?rev=263520&view=rev</a><br class="">
Log:<br class="">
Add some test coverage for the changes in alias help<br class="">
<br class="">
<br class="">
Modified:<br class="">
    lldb/trunk/packages/Python/lldbsuite/test/help/TestHelp.py<br class="">
<br class="">
Modified: lldb/trunk/packages/Python/lldbsuite/test/help/TestHelp.py<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/help/TestHelp.py?rev=263520&r1=263519&r2=263520&view=diff" rel="noreferrer" target="_blank" class="">http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/help/TestHelp.py?rev=263520&r1=263519&r2=263520&view=diff</a><br class="">
==============================================================================<br class="">
--- lldb/trunk/packages/Python/lldbsuite/test/help/TestHelp.py (original)<br class="">
+++ lldb/trunk/packages/Python/lldbsuite/test/help/TestHelp.py Mon Mar 14 20:43:00 2016<br class="">
@@ -167,6 +167,24 @@ class HelpCommandTestCase(TestBase):<br class="">
                         'variable +--'])<br class="">
<br class="">
     @no_debug_info_test<br class="">
+    def test_help_po_hides_options(self):<br class="">
+        """Test that 'help po' does not show all the options for expression"""<br class="">
+        self.expect("help po",<br class="">
+            substrs = ['--show-all-children', '--object-description'], matching=False)<br class="">
+<br class="">
+    @no_debug_info_test<br class="">
+    def test_help_run_hides_options(self):<br class="">
+        """Test that 'help run' does not show all the options for process launch"""<br class="">
+        self.expect("help run",<br class="">
+            substrs = ['--arch', '--environment'], matching=False)<br class="">
+<br class="">
+    @no_debug_info_test<br class="">
+    def test_help_next_shows_options(self):<br class="">
+        """Test that 'help next' shows all the options for thread step-over"""<br class="">
+        self.expect("help next",<br class="">
+            substrs = ['--python-class','--run-mode'], matching=True)<br class="">
+<br class="">
+    @no_debug_info_test<br class="">
     def test_help_provides_alternatives(self):<br class="">
         """Test that help on commands that don't exist provides information on additional help avenues"""<br class="">
         self.expect("help thisisnotadebuggercommand",<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
lldb-commits mailing list<br class="">
<a href="mailto:lldb-commits@lists.llvm.org" target="_blank" class="">lldb-commits@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></body></html>