Commit dcc2d17
committed
Clean up the hand-registered test type after the expectation
PredicateConstructionThrowsWhenNoMemberMatches manually inserted a
MismatchedRecord entry into the process-wide reflection registry (with no
member metadata, to force an offset-match miss) but never removed it. Left
in place, Database::Database iterates every registered record on
Initialize() and would generate "CREATE TABLE IF NOT EXISTS
MismatchedRecord ();" (empty column list) for it - invalid SQL that throws
and breaks every later Database::Initialize() call in the same test binary,
depending on test execution order.
This didn't surface in a normal sequential run, but reliably broke under
--gtest_shuffle: 4 of 5 random seeds failed with 6-37 cascading test
failures before this fix, and all of 10 random seeds pass after it. Added a
small RAII ScopedRegistryCleanup that erases the hand-inserted entry on
scope exit.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NUt3c1wdseRtRSSXfg3MCK1 parent 398c870 commit dcc2d17
1 file changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
226 | 245 | | |
227 | 246 | | |
228 | 247 | | |
| |||
237 | 256 | | |
238 | 257 | | |
239 | 258 | | |
| 259 | + | |
240 | 260 | | |
241 | | - | |
| 261 | + | |
| 262 | + | |
242 | 263 | | |
243 | 264 | | |
244 | 265 | | |
0 commit comments