diff options
Diffstat (limited to 'tests/integration_tests.rs')
-rw-r--r-- | tests/integration_tests.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index c589c925..c318aa47 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -628,6 +628,18 @@ fn filename_multiple_err() { .failure(); } +#[cfg(target_os = "linux")] +#[test] +fn file_with_invalid_utf8_filename() { + use std::ffi::OsStr; + use std::os::unix::ffi::OsStrExt; + + bat() + .arg(OsStr::from_bytes(b"test-invalid-utf8-\xC3(.rs")) + .assert() + .success(); +} + #[test] fn do_not_panic_regression_tests() { for filename in &[ |