Commit d4a8d79
committed
Improve filesystem timestamp granularity check
This avoids false positives for the check of whether we can proceed
to run the filesystem snapshot `journey` test, by making a hundred
files about as fast as we can using ordinary non-parallelized
techniques, then checking if all their timestamps are distinct.
This carries a small risk of false negatives, but experiments on
macOS, where the `journey` test is typically able to run, suggest
that the rate of false negatives will be low. (False positive are
also, in theory, possible, but should be extremely rare or never
happen.)1 parent bf45023 commit d4a8d79
1 file changed
+16
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
0 commit comments