tests: fixed failing Windows test for odd session names that doesn't allow escape characters in file names

This commit is contained in:
Dark-Alex-17 committed 2026-09-28 16:03:48 -06:00
1 parent a3c4b6a364
commit 9ae26f4194
1 file changed
+4
+4
View File
@@ -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] #[test]
#[serial] #[serial]
#[cfg(not(windows))]
fn session_list_rows_strip_terminal_escapes() { fn session_list_rows_strip_terminal_escapes() {
let _config = TestConfigDirGuard::new(); let _config = TestConfigDirGuard::new();
let ctx = create_test_ctx(); let ctx = create_test_ctx();
@@ -9827,6 +9830,7 @@ mod tests {
#[test] #[test]
#[serial] #[serial]
#[cfg(not(windows))]
fn repl_complete_session_strips_terminal_escapes_from_names() { fn repl_complete_session_strips_terminal_escapes_from_names() {
let _config = TestConfigDirGuard::new(); let _config = TestConfigDirGuard::new();
let ctx = create_test_ctx(); let ctx = create_test_ctx();