1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Test helpers, as in rust-web-server's `test_env`: the lock around
//! `RWS_CONFIG_*` writes (this crate's tests run in their own process, so
//! the lock is their own) and self-deleting temp paths.
use ;
static LOCK: = new;
/// A per-process path under the OS temp dir that is deleted (file or
/// directory) when dropped — so a test cleans up even when an assertion
/// fails before its last line.
;