Commit 6358fe1
authored
chore: fix
Resolves CORE-416.
The `test_ci_asserts` unit test has been causing windows nightly runs to
fail quite mysteriously as `ctest` would report all tests passing but
still return an exit code of `-1` to the runner, failing the job.
It turns out that when the `-V` (verbose) flag is used, `ctest` does
some processing of the stdout/stderr of each unit test. Even if the
tests succeed with an exit status of zero, certain patterns in the
stdout or stderr can cause `ctest` to report failure anyway.
One of those patterns seemingly is `internal error`, which is output by
our `passert` failure. So, when `test_ci_asserts` would spawn a
subprocess which intentionally fails asserts, `internal error` was
printed to stderr and flagged by `ctest`, causing it to report failure.
This pull request fixes that by capturing the output of the
assertion-failing subprocess instead so it doesn't get reported to
stdout.
We also fix the new `passert` callback registration tests, whose
failures we did not notice because they only failed in this nightly job.
---
TYPE: NO_HISTORY
DESC: Fix test_ci_assertstest_ci_asserts on windows nightlyRr/core 416 test assert nonzero exit code windows (#5696)1 parent 418ed7b commit 6358fe1
2 files changed
+67
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
78 | 116 | | |
79 | 117 | | |
80 | 118 | | |
| |||
160 | 198 | | |
161 | 199 | | |
162 | 200 | | |
163 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
164 | 206 | | |
165 | 207 | | |
166 | 208 | | |
167 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
168 | 214 | | |
169 | 215 | | |
170 | 216 | | |
171 | 217 | | |
172 | 218 | | |
173 | 219 | | |
174 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
175 | 225 | | |
176 | 226 | | |
177 | 227 | | |
178 | 228 | | |
179 | 229 | | |
180 | 230 | | |
181 | 231 | | |
182 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
183 | 237 | | |
184 | 238 | | |
185 | 239 | | |
186 | 240 | | |
187 | 241 | | |
188 | 242 | | |
189 | 243 | | |
190 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
191 | 249 | | |
192 | 250 | | |
193 | 251 | | |
0 commit comments