[Lldb-commits] [lldb] [lldb] Fix output of `help format` (PR #190409)

via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 3 14:30:14 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 33390 tests passed
* 516 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### lldb-api
<details>
<summary>lldb-api.commands/help/TestHelp.py</summary>

```
Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --arch x86_64 --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/help -p TestHelp.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 8062c8d34b58d16ae4d15fe8f77ad5e0c3022a85)
  clang revision 8062c8d34b58d16ae4d15fe8f77ad5e0c3022a85
  llvm revision 8062c8d34b58d16ae4d15fe8f77ad5e0c3022a85
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_alias_prints_origin (TestHelp.HelpCommandTestCase.test_alias_prints_origin)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_custom_help_alias (TestHelp.HelpCommandTestCase.test_custom_help_alias)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_ambiguous (TestHelp.HelpCommandTestCase.test_help_ambiguous)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_arch (TestHelp.HelpCommandTestCase.test_help_arch)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_breakpoint_set (TestHelp.HelpCommandTestCase.test_help_breakpoint_set)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_detailed_information_ordering (TestHelp.HelpCommandTestCase.test_help_detailed_information_ordering)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_detailed_information_spacing (TestHelp.HelpCommandTestCase.test_help_detailed_information_spacing)
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_format_output (TestHelp.HelpCommandTestCase.test_help_format_output)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/commands/help/TestHelp/Failure_test_help_format_output.log
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_image_du_line_should_work (TestHelp.HelpCommandTestCase.test_help_image_du_line_should_work)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_image_du_sym_is_ambiguous (TestHelp.HelpCommandTestCase.test_help_image_du_sym_is_ambiguous)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_image_dump_symtab_should_not_crash (TestHelp.HelpCommandTestCase.test_help_image_dump_symtab_should_not_crash)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_image_list_shows_positional_args (TestHelp.HelpCommandTestCase.test_help_image_list_shows_positional_args)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_memory_read_should_not_crash_lldb (TestHelp.HelpCommandTestCase.test_help_memory_read_should_not_crash_lldb)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_next_shows_options (TestHelp.HelpCommandTestCase.test_help_next_shows_options)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_on_help (TestHelp.HelpCommandTestCase.test_help_on_help)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_option_description_terminal_width_no_ansi (TestHelp.HelpCommandTestCase.test_help_option_description_terminal_width_no_ansi)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_option_description_terminal_width_with_ansi (TestHelp.HelpCommandTestCase.test_help_option_description_terminal_width_with_ansi)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_option_group_format_options_usage (TestHelp.HelpCommandTestCase.test_help_option_group_format_options_usage)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_po_hides_options (TestHelp.HelpCommandTestCase.test_help_po_hides_options)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_provides_alternatives (TestHelp.HelpCommandTestCase.test_help_provides_alternatives)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_run_hides_options (TestHelp.HelpCommandTestCase.test_help_run_hides_options)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_should_not_crash_lldb (TestHelp.HelpCommandTestCase.test_help_should_not_crash_lldb)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_should_not_hang_emacsshell (TestHelp.HelpCommandTestCase.test_help_should_not_hang_emacsshell)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_show_enum_values (TestHelp.HelpCommandTestCase.test_help_show_enum_values)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_show_tags (TestHelp.HelpCommandTestCase.test_help_show_tags)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_shows_command_options_usage (TestHelp.HelpCommandTestCase.test_help_shows_command_options_usage)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_shows_optional_short_options (TestHelp.HelpCommandTestCase.test_help_shows_optional_short_options)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_target_variable_syntax (TestHelp.HelpCommandTestCase.test_help_target_variable_syntax)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_unknown_flag (TestHelp.HelpCommandTestCase.test_help_unknown_flag)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_version (TestHelp.HelpCommandTestCase.test_help_version)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_watchpoint_and_its_args (TestHelp.HelpCommandTestCase.test_help_watchpoint_and_its_args)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_help_watchpoint_set (TestHelp.HelpCommandTestCase.test_help_watchpoint_set)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_hidden_help (TestHelp.HelpCommandTestCase.test_hidden_help)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_simplehelp (TestHelp.HelpCommandTestCase.test_simplehelp)
======================================================================
FAIL: test_help_format_output (TestHelp.HelpCommandTestCase.test_help_format_output)
    Test that help output reaches TerminalWidth and wraps to the next
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 522, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/commands/help/TestHelp.py", line 255, in test_help_format_output
    self.expect(
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2791, in expect
    self.fail(log_msg)
AssertionError: Ran command:
"help format"

Got output:
<format> -- One of the format names (or one-character names) that can be used to show a variable's value:
            "default"
            'B' or "boolean"
            'b' or "binary"
            'y' or "bytes"
            'Y' or "bytes with ASCII"
            'c' or "character"
            'C' or "printable character"
            'F' or "complex float"
            's' or "c-string"
            'd' or "decimal"
            'E' or "enumeration"
            'x' or "hex"
            'X' or "uppercase hex"
            'f' or "float"
            'o' or "octal"
            'O' or "OSType"
            'U' or "unicode16"
            "unicode32"
            'u' or "unsigned decimal"
            'p' or "pointer"
            "char[]"
            "int8_t[]"
            "uint8_t[]"
            "int16_t[]"
            "uint16_t[]"
            "int32_t[]"
            "uint32_t[]"
            "int64_t[]"
            "uint64_t[]"
            "float16[]"
            "float32[]"
            "float64[]"
            "uint128_t[]"
            'I' or "complex integer"
            'a' or "character array"
            'A' or "address"
            "hex float"
            'i' or "instruction"
            'v' or "void"
            'u' or "unicode8"
            "float128"

Expecting regex pattern: "^<format> -- One of the format names \(or one-character names\) that can be used to show a variable's\n\s+value:\n" (was not found)
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 34 tests in 0.401s

FAILED (failures=1)

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/190409


More information about the lldb-commits mailing list