From feaafd2ef2de6ba83425a81bbd912ffdb26911de Mon Sep 17 00:00:00 2001 From: Nikolai Kholiavin Date: Wed, 23 Aug 2023 14:06:33 +0300 Subject: [PATCH] [lldb][test] Temporarily modify shell format tests to accept non-color ANSI escape sequences When using older libreadline with python, meta key enable sequence is not disabled, and so TestFrameFormatNoColor.test fails. Change tests to check for color-specific ANSI escape sequences only. Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/I7ST9E Signed-off-by: Nikolai Kholiavin --- lldb/test/Shell/Settings/TestFrameFormatColor.test | 5 ++++- lldb/test/Shell/Settings/TestFrameFormatNoColor.test | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lldb/test/Shell/Settings/TestFrameFormatColor.test b/lldb/test/Shell/Settings/TestFrameFormatColor.test index 970d7238e751..bb49a2c2aeed 100644 --- a/lldb/test/Shell/Settings/TestFrameFormatColor.test +++ b/lldb/test/Shell/Settings/TestFrameFormatColor.test @@ -9,4 +9,7 @@ c q # Check the ASCII escape code -# CHECK:  +# OHOS_LOCAL FIXME: when python is using libreadline5, "enable-meta-key" cannot be disabled, +# and its control sequence fails the TestFrameFormatNoColor.test test. +# Temporarily modified the test to only match color-related ANSI escape sequences +# CHECK: [{{[0-9]}} diff --git a/lldb/test/Shell/Settings/TestFrameFormatNoColor.test b/lldb/test/Shell/Settings/TestFrameFormatNoColor.test index 2bcdb8e82bd9..ec47a8016516 100644 --- a/lldb/test/Shell/Settings/TestFrameFormatNoColor.test +++ b/lldb/test/Shell/Settings/TestFrameFormatNoColor.test @@ -9,4 +9,7 @@ c q # Check the ASCII escape code -# CHECK-NOT:  +# OHOS_LOCAL FIXME: when python is using libreadline5, "enable-meta-key" cannot be disabled, +# and its control sequence fails the TestFrameFormatNoColor.test test. +# Temporarily modified the test to only match color-related ANSI escape sequences +# CHECK-NOT: [{{[0-9]}} -- Gitee