File: fix-test

package info (click to toggle)
rust-cachedir 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 132 kB
  • sloc: makefile: 4
file content (13 lines) | stat: -rw-r--r-- 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: cachedir/src/lib.rs
===================================================================
--- cachedir.orig/src/lib.rs
+++ cachedir/src/lib.rs
@@ -229,7 +229,7 @@ fn mkdir_atomic_works() {
     let cache = directory.path().join("cache");
     let threads = (0..10).map(|_| {
         let cache = cache.clone();
-        thread::spawn(move || mkdir_atomic(cache))
+        std::thread::spawn(move || mkdir_atomic(cache))
     });
     let results = threads.map(|t| t.join().unwrap().unwrap());
     let creations: usize = results.map(|created| if created { 1 } else { 0 }).sum();