Skip to content

Commit

Permalink
kernel: Use send_tty to send data to stdin in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Oct 30, 2024
1 parent 42aa760 commit bd2ba03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/kernel/test/interactive_shell_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,9 @@ shell_format(Config) ->
send_tty(Term1, "Down"),
tmux(["resize-window -t ",tty_name(Term1)," -x ",200]),
timer:sleep(1000),
send_stdin(Term1, "shell:format_shell_func(\"emacs -batch \${file} -l \"\n"),
send_stdin(Term1, EmacsFormat),
send_stdin(Term1, "\" -f emacs-format-function\").\n"),
send_tty(Term1, "shell:format_shell_func(\"emacs -batch \${file} -l \"\n"),
send_tty(Term1, EmacsFormat),
send_tty(Term1, "\" -f emacs-format-function\").\n"),
check_content(Term1, "{shell,erl_pp_format_func}"),
send_tty(Term1, "Up"),
send_tty(Term1, "Up"),
Expand All @@ -547,7 +547,7 @@ shell_format(Config) ->
check_content(Term1, "fun\\(X\\) ->\\s*.. X\\s*.. end."),
send_tty(Term1, "Down"),
check_content(Term1, ">$"),
send_stdin(Term1, "shell:format_shell_func({bad,format}).\n"),
send_tty(Term1, "shell:format_shell_func({bad,format}).\n"),
send_tty(Term1, "Up"),
send_tty(Term1, "Up"),
send_tty(Term1, "\n"),
Expand Down

0 comments on commit bd2ba03

Please sign in to comment.