Repository navigation
Commit ecf5c39
authored
Make test hook setup safe across repeated runs
Summary:
Repeated GTest invocations and the XCTest bridge retain the process-global hook registry, so unconditional test-provider registration fails on subsequent suite setup. Register once per process while retaining the assertion that the initial registration succeeded. Add a regression for repeated setup without changing the production one-provider contract or duplicate-provider rejection coverage.
Leave the disabled Xcode-staging configuration unchanged.
Differential Revision: D123082075
Pull Request resolved: pytorch#233761 parent a78b4da commit ecf5c39
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
140 | 149 | | |
141 | 150 | | |
142 | 151 | | |
| |||
0 commit comments