Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:25
erlang
1991-kernel-Fix-invalid_ansi-testcase.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1991-kernel-Fix-invalid_ansi-testcase.patch of Package erlang
From 179daa02e65c1c75a1af246d2ccddeb06800d59c Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Wed, 21 Sep 2022 10:22:44 +0200 Subject: [PATCH] kernel: Fix invalid_ansi testcase If the terminal does not support unicode we should not use a unicode prompt. --- lib/kernel/test/interactive_shell_SUITE.erl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/kernel/test/interactive_shell_SUITE.erl b/lib/kernel/test/interactive_shell_SUITE.erl index bd002e907f..0a487add0e 100644 --- a/lib/kernel/test/interactive_shell_SUITE.erl +++ b/lib/kernel/test/interactive_shell_SUITE.erl @@ -863,7 +863,13 @@ shell_support_ansi_input(Config) -> %% tmux cannot handle this... so we test this using to_erl shell_invalid_ansi(_Config) -> - InvalidAnsiPrompt = ["\e]94m",54620,44397,50612,47,51312,49440,47568,"\e]0m"], + InvalidAnsiPrompt = + case proplists:get_value(encoding, io:getopts(user)) of + unicode -> + ["\e]94m",54620,44397,50612,47,51312,49440,47568,"\e]0m"]; + latin1 -> + ["\e]94minvalid_test\e]0m"] + end, rtnode:run( [{eval, fun() -> application:set_env( -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor