Commit aa4b242
committed
Test
To investigate GitoxideLabs#2006, this explodes the occasionally failing test
`writes_through_symlinks_are_prevented_even_if_overwriting_is_allowed`
into 1000 identical tests, using `test_case::test_matrix`.
When run in series, they all pass, but when run in parallel with
`cargo nextest`, some failures always occur, at least when this is
done on macOS. This is as predicted in:
GitoxideLabs#2006 (comment)
A more specific result in local testing on macOS 15 is that, while
the number of failures is 0 with `--test-threads=1`, with 2 or more
threads, the number of failures tends to *decrease* with the number
of threads. The most failures occur with `--test-threads=2`, about
30 on the system tested, while `--test-threads=16` has about 10
failures.
The tests were run with this command, with any `--test-threads=<N>`
argument added:
cargo nextest run -p gix-worktree-state-tests writes_through_symlinks_are_prevented_even_if_overwriting_is_allowed --no-fail-fastoverwrite_existing apparent symlink dereferencing1 parent 648022b commit aa4b242
File tree
3 files changed
+38
-2
lines changed- gix-worktree-state/tests
- state
3 files changed
+38
-2
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
107 | | - | |
| 107 | + | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
0 commit comments