tests: fixed failing Windows test for odd session names that doesn't allow escape characters in file names
This commit is contained in:
1 file changed
+4
@@ -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();
|
||||||
|
|||||||
Reference in new issue
Block a user