melib: `#[ignore]` shellexpand tests

These tests fail sometimes, #[ignore] them until the bug is found.

Closes #442

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/482/head
Manos Pitsidianakis 2 months ago
parent 5c4faea539
commit 4c44c440f6
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

@ -33,6 +33,8 @@ use tempfile::TempDir;
use crate::error::{Errno, ErrorKind};
#[sealed_test]
#[ignore]
#[test]
fn test_shellexpandtrait() {
use super::shellexpand::*;
@ -148,10 +150,13 @@ fn test_shellexpandtrait() {
);
assert!(matches!(Path::new("/").expand().complete(true, true),
Completions::Entries(entries) if !entries.is_empty()));
_ = tmp_dir.close();
}
#[cfg(target_os = "linux")]
#[sealed_test]
#[ignore]
#[test]
fn test_shellexpandtrait_impls() {
use super::shellexpand::*;
@ -179,6 +184,8 @@ fn test_shellexpandtrait_impls() {
std::env::set_var("HOME", tmp_dir.path());
assert_eq!(&Path::new("~").expand(), tmp_dir.path());
macro_rules! assert_complete {
(($path:expr, $force:literal, $treat_as_dir:literal), $($expected:tt)*) => {{
assert_eq!(
@ -255,6 +262,7 @@ fn test_shellexpandtrait_impls() {
(&Path::new("/").expand(), true, false),
Completions::IsDirectory
);
_ = tmp_dir.close();
}
#[test]

Loading…
Cancel
Save