Commit cfd5712
Fix test presets not auto-switching when build preset changes (#4819)
* Initial plan
* Fix test presets not auto-switching when build preset changes
When switching build presets (especially with multi-config generators like
Ninja Multi-Config), incompatible test presets were unloaded but no compatible
one was auto-selected. Users had to manually switch test presets.
Changes:
1. setBuildPreset() now calls guessTestPreset() after loading the build
preset if no test preset is currently set.
2. guessTestPreset() now properly checks testPresetCompatible (including
build type matching) instead of only checking buildPresetCompatible
(which only verified configure preset matching).
Fixes #4336
Co-authored-by: Omotola <[email protected]>
* Update CHANGELOG entry to cite issue #4395 instead of #4336
Co-authored-by: Omotola <[email protected]>
* switch the check of test preset compatibility to run regardless of configure preset check guard
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Omotola <[email protected]>
Co-authored-by: Omotola <[email protected]>
Co-authored-by: Hannia Valera <[email protected]>1 parent 9c676d3 commit cfd5712
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
| 1043 | + | |
1043 | 1044 | | |
1044 | | - | |
| 1045 | + | |
1045 | 1046 | | |
1046 | 1047 | | |
1047 | 1048 | | |
| |||
1193 | 1194 | | |
1194 | 1195 | | |
1195 | 1196 | | |
1196 | | - | |
| 1197 | + | |
1197 | 1198 | | |
1198 | 1199 | | |
1199 | 1200 | | |
1200 | | - | |
| 1201 | + | |
1201 | 1202 | | |
1202 | 1203 | | |
1203 | 1204 | | |
| |||
1221 | 1222 | | |
1222 | 1223 | | |
1223 | 1224 | | |
1224 | | - | |
1225 | 1225 | | |
1226 | 1226 | | |
1227 | 1227 | | |
| |||
1233 | 1233 | | |
1234 | 1234 | | |
1235 | 1235 | | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
1236 | 1241 | | |
1237 | 1242 | | |
1238 | 1243 | | |
| |||
0 commit comments