Skip to content

Conversation

@dmpots
Copy link
Contributor

@dmpots dmpots commented Mar 19, 2025

The unicode test sends some unicode input to lldb through pexpect and expects the output to be echoed back in an error message. This only works correctly when editline was compiled with wide character support.

This commit modifies the test to require the necessary libedit configuration.

The unicode test sends some unicode input to lldb through pexpect and
expects the output to be echoed back in an error message. This only
works correctly when editline was compiled with wide character support.

This commit modifies the test to require the necessary libedit configuration.
@dmpots dmpots requested review from Jlalond, clayborg and zhyty March 19, 2025 01:41
@dmpots dmpots requested a review from JDevlieghere as a code owner March 19, 2025 01:41
@llvmbot llvmbot added the lldb label Mar 19, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 19, 2025

@llvm/pr-subscribers-lldb

Author: David Peixotto (dmpots)

Changes

The unicode test sends some unicode input to lldb through pexpect and expects the output to be echoed back in an error message. This only works correctly when editline was compiled with wide character support.

This commit modifies the test to require the necessary libedit configuration.


Full diff: https://github.com/llvm/llvm-project/pull/131951.diff

1 Files Affected:

  • (modified) lldb/test/API/iohandler/unicode/TestUnicode.py (+1)
diff --git a/lldb/test/API/iohandler/unicode/TestUnicode.py b/lldb/test/API/iohandler/unicode/TestUnicode.py
index 93e2ae38f8262..f13427f2c30a8 100644
--- a/lldb/test/API/iohandler/unicode/TestUnicode.py
+++ b/lldb/test/API/iohandler/unicode/TestUnicode.py
@@ -16,6 +16,7 @@ class TestCase(PExpectTest):
     # under ASAN on a loaded machine..
     @skipIfAsan
     @skipIf(oslist=["linux"], archs=["arm", "aarch64"])  # Randomly fails on buildbot
+    @skipIfEditlineWideCharSupportMissing
     def test_unicode_input(self):
         self.launch()
 

@dmpots dmpots merged commit 58027fa into llvm:main Mar 19, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants