File 3002-kernel-Fix-interactive_shell_SUITE-shell_full_queue-.patch of Package erlang
From 559db137306a0692085b2d088c7ba69059b14fe4 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Fri, 30 Aug 2024 10:48:08 +0200
Subject: [PATCH 6/8] kernel: Fix interactive_shell_SUITE:shell_full_queue tc
skip condition
---
lib/kernel/test/interactive_shell_SUITE.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/kernel/test/interactive_shell_SUITE.erl b/lib/kernel/test/interactive_shell_SUITE.erl
index fed6b69724..8a8399a26e 100644
--- a/lib/kernel/test/interactive_shell_SUITE.erl
+++ b/lib/kernel/test/interactive_shell_SUITE.erl
@@ -1550,7 +1550,7 @@ shell_suspend(Config) ->
%% We test that suspending of `erl` and then resuming restores the shell
shell_full_queue(Config) ->
- [throw({skip,"Need unbuffered to run"}) || os:find_executable("unbuffered") =:= false],
+ [throw({skip,"Need unbuffer (apt install expect) to run"}) || os:find_executable("unbuffer") =:= false],
%% In order to fill the read buffer of the terminal we need to get a
%% bit creative. We first need to start erl in bash in order to be
@@ -1617,7 +1617,7 @@ shell_full_queue(Config) ->
send_tty(Term, "fg"),
send_tty(Term, "Enter"),
Pid ! stop,
- check_content(Term,"b$"),
+ check_content(Term,"b\\([^)]*\\)2>$"),
send_tty(Term, "."),
send_tty(Term, "Enter"),
--
2.43.0