Commit c25c736
committed
git.test: cover the
Add a `getViaGit full ucrt64` companion to the existing
`getViaGit full x86_64` test. The new test pins down the two
behaviours that distinguish the UCRT64 variant from the MINGW64 one,
both of which would silently regress to "secretly materialise the
wrong toolchain" if broken: that the artifact name is
`git-sdk-ucrt64-full` rather than `git-sdk-64-full` (so caches and
on-disk output directories never collide with `x86_64`), and that the
clone targets the `ucrt64` branch of `git-sdk-64` rather than `main`.
The clone assertion goes via `spawnAndWaitForExitCode` rather than
spying on `clone` itself, because internal callers of `clone()` within
`git.ts` resolve the binding at module load time and the `vi.spyOn`
override of the module export does not intercept them. The existing
`full x86_64` test only mocks `clone` to silence side-effects, never
to assert on its arguments, so the discrepancy in style is local to
this one new test.
Assisted-by: Opus 4.7
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>ucrt64 axis1 parent db44df7 commit c25c736
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
101 | 134 | | |
0 commit comments