From 9ae26f4194205870c3b752c8799040c4c3c5591b Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 28 Sep 2026 16:03:48 -0600 Subject: [PATCH] tests: fixed failing Windows test for odd session names that doesn't allow escape characters in file names --- src/config/request_context.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config/request_context.rs b/src/config/request_context.rs index 5f7dea6..3704bb3 100644 --- a/src/config/request_context.rs +++ b/src/config/request_context.rs @@ -9800,8 +9800,11 @@ mod tests { ); } + // Windows rejects control characters (0x00-0x1F) in filenames, so a session + // file named with an ESC byte cannot exist there; the scenario is Unix-only. #[test] #[serial] + #[cfg(not(windows))] fn session_list_rows_strip_terminal_escapes() { let _config = TestConfigDirGuard::new(); let ctx = create_test_ctx(); @@ -9827,6 +9830,7 @@ mod tests { #[test] #[serial] + #[cfg(not(windows))] fn repl_complete_session_strips_terminal_escapes_from_names() { let _config = TestConfigDirGuard::new(); let ctx = create_test_ctx();