1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 11:32:48 -05:00

Add a test rig for ldisc's local line editing.

I'm about to rewrite it completely, so the first thing I need to do is
to write tests for as much of the functionality as possible, so that I
can check the new implementation behaves in the same ways.
This commit is contained in:
Simon Tatham
2023-03-04 12:57:03 +00:00
parent fd43ff6e27
commit 7a48837471
5 changed files with 758 additions and 0 deletions

View File

@ -188,3 +188,14 @@ target_link_libraries(test_split_into_argv utils ${platform_libraries})
add_executable(test_screenshot
test_screenshot.c)
target_link_libraries(test_screenshot utils ${platform_libraries})
add_executable(test_lineedit
${CMAKE_SOURCE_DIR}/test/test_lineedit.c
${CMAKE_SOURCE_DIR}/stubs/no-gss.c
${CMAKE_SOURCE_DIR}/stubs/no-logging.c
${CMAKE_SOURCE_DIR}/stubs/no-printing.c
${CMAKE_SOURCE_DIR}/stubs/no-storage.c
${CMAKE_SOURCE_DIR}/stubs/no-timing.c
no-jump-list.c)
target_link_libraries(test_lineedit
guiterminal settings eventloop utils ${platform_libraries})

View File

@ -195,6 +195,7 @@ void centre_window(HWND hwnd);
#define DEFAULT_CODEPAGE CP_ACP
#define USES_VTLINE_HACK
#define CP_UTF8 65001
#define CP_437 437 /* used for test suites */
#ifndef NO_GSSAPI
/*