From 5ab50e3905a378fb94fe4d085807dbced6cc9b98 Mon Sep 17 00:00:00 2001 From: YO4 Date: Mon, 4 Nov 2024 21:18:31 +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 e4ad44a4e9..78bc2db552 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. > オー グ言▄