!44 fix typo in test-tty-escape-sequence-processing.c
From: @cao-fei8 Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
85ef3a02d2
@ -0,0 +1,48 @@
|
||||
From 50c337a0b177669410efef83541e6f17c63ff5b0 Mon Sep 17 00:00:00 2001
|
||||
From: Ikko Ashimine <eltociear@gmail.com>
|
||||
Date: Wed, 8 Sep 2021 23:02:11 +0900
|
||||
Subject: [PATCH] test: fix typo in test-tty-escape-sequence-processing.c
|
||||
|
||||
postion -> position in several comments
|
||||
|
||||
PR-URL: https://github.com/libuv/libuv/pull/3284
|
||||
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
|
||||
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
|
||||
---
|
||||
test/test-tty-escape-sequence-processing.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/test/test-tty-escape-sequence-processing.c b/test/test-tty-escape-sequence-processing.c
|
||||
index ef34e592..c19ccb5c 100644
|
||||
--- a/test/test-tty-escape-sequence-processing.c
|
||||
+++ b/test/test-tty-escape-sequence-processing.c
|
||||
@@ -271,7 +271,7 @@ static void make_expect_screen_erase(struct captured_screen* cs,
|
||||
static void make_expect_screen_write(struct captured_screen* cs,
|
||||
COORD cursor_position,
|
||||
const char* text) {
|
||||
- /* postion of cursor */
|
||||
+ /* position of cursor */
|
||||
char* start;
|
||||
start = cs->text + cs->si.width * (cursor_position.Y - 1) +
|
||||
cursor_position.X - 1;
|
||||
@@ -1261,7 +1261,7 @@ TEST_IMPL(tty_save_restore_cursor_position) {
|
||||
cursor_pos.Y = si.height / 4;
|
||||
set_cursor_position(&tty_out, cursor_pos);
|
||||
|
||||
- /* restore the cursor postion */
|
||||
+ /* restore the cursor position */
|
||||
snprintf(buffer, sizeof(buffer), "%su", CSI);
|
||||
write_console(&tty_out, buffer);
|
||||
get_cursor_position(&tty_out, &cursor_pos);
|
||||
@@ -1280,7 +1280,7 @@ TEST_IMPL(tty_save_restore_cursor_position) {
|
||||
cursor_pos.Y = si.height / 4;
|
||||
set_cursor_position(&tty_out, cursor_pos);
|
||||
|
||||
- /* restore the cursor postion */
|
||||
+ /* restore the cursor position */
|
||||
snprintf(buffer, sizeof(buffer), "%s8", ESC);
|
||||
write_console(&tty_out, buffer);
|
||||
get_cursor_position(&tty_out, &cursor_pos);
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Name: libuv
|
||||
Epoch: 1
|
||||
Version: 1.42.0
|
||||
Release: 5
|
||||
Release: 6
|
||||
Summary: A multi-platform support library with a focus on asynchronous I/O
|
||||
|
||||
# from README.md
|
||||
@ -11,6 +11,7 @@ Source0: http://dist.libuv.org/dist/v%{version}/%{name}-v%{version}.tar.g
|
||||
|
||||
Patch1: libuv-Add-sw64-architecture.patch
|
||||
Patch2: backport-Skip-some-tests.patch
|
||||
Patch3: 0001-test-fix-typo-in-test-tty-escape-sequence-processing.patch
|
||||
|
||||
BuildRequires: autoconf automake libtool gcc make
|
||||
|
||||
@ -63,6 +64,9 @@ make check
|
||||
%doc ChangeLog
|
||||
|
||||
%changelog
|
||||
* Sat Jan 7 2023 caofei <caofei@xfusion.com> - 1:1.42.0-6
|
||||
- fix typo in test-tty-escape-sequence-processing.c
|
||||
|
||||
* Thu Dec 15 2022 shixuantong <shixuantong1@huawei.com> - 1:1.42.0-5
|
||||
- add make to buildrequires
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user