diff --git a/.travis.yml b/.travis.yml index f29feeb..800986e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,4 +3,4 @@ rust: - nightly script: - cargo build - - cargo test --verbose -- --test-threads=1 \ No newline at end of file + - cargo test --verbose \ No newline at end of file diff --git a/rcore-fs/Cargo.toml b/rcore-fs/Cargo.toml index f4be60e..484bef8 100644 --- a/rcore-fs/Cargo.toml +++ b/rcore-fs/Cargo.toml @@ -14,5 +14,8 @@ bit-vec = { default-features = false, git = "https://github.com/AltSysrq/bit-vec static_assertions = "0.3" spin = "0.4" +[dev-dependencies] +tempfile = "3" + [features] std = [] \ No newline at end of file diff --git a/rcore-fs/src/tests.rs b/rcore-fs/src/tests.rs index 4624ab2..110d761 100644 --- a/rcore-fs/src/tests.rs +++ b/rcore-fs/src/tests.rs @@ -16,8 +16,7 @@ fn _open_sample_file() -> Arc { } fn _create_new_sfs() -> Arc { - let file = OpenOptions::new() - .read(true).write(true).create(true).open("test.img") + let file = tempfile::tempfile() .expect("failed to create file"); SimpleFileSystem::create(Box::new(file), 32 * 4096) }