From b383a37fdefc623d19c0e8b5daf3ddc889e3abc8 Mon Sep 17 00:00:00 2001 From: YO4 Date: Sat, 19 Oct 2024 22:49:16 +0900 Subject: [PATCH] test_yamatanooroti: avoid windows conhost behavior Non VT sequence supporting windows console has forced newline output when writing rightmost column of line. This may appear as an additional line break. Clearing screen to avoid this environment dependent behavior. --- test/reline/yamatanooroti/test_rendering.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index 5b0f66804c..1737b2ce04 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -1256,11 +1256,9 @@ def test_dialog_with_fullwidth_chars start_terminal(20, 5, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --dialog fullwidth,scrollkey,scrollbar}, startup_message: 'Multiline REPL.', codepage: 932) omit "codepage 932 not supported" if !codepage_success? end + write("\C-l") 6.times{ write('j') } assert_screen(<<~'EOC') - Multi - line - REPL. > オー グ言▄