Commit f2b292f
committed
test/rgw: link lua test against unit-main for g_ceph_context
test_rgw_lua.cc was allocating a CephContext without initializing it, so
log statements from the tests/rgw code weren't actually being logged
the unit-main target links in the main() function from test/unit.cc
which initializes the CephContext via global_init(). use the resulting
global g_ceph_context instead of managing a separate one
Related-to: https://tracker.ceph.com/issues/70673
Signed-off-by: Casey Bodley <[email protected]>1 parent 0f6c96e commit f2b292f
2 files changed
+7
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 20 | | |
34 | 21 | | |
35 | 22 | | |
| |||
167 | 154 | | |
168 | 155 | | |
169 | 156 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 157 | | |
175 | 158 | | |
176 | 159 | | |
177 | 160 | | |
178 | | - | |
| 161 | + | |
179 | 162 | | |
180 | 163 | | |
181 | 164 | | |
| |||
194 | 177 | | |
195 | 178 | | |
196 | 179 | | |
197 | | - | |
| 180 | + | |
198 | 181 | | |
199 | 182 | | |
200 | 183 | | |
| |||
220 | 203 | | |
221 | 204 | | |
222 | 205 | | |
223 | | - | |
| 206 | + | |
224 | 207 | | |
225 | 208 | | |
226 | 209 | | |
| |||
235 | 218 | | |
236 | 219 | | |
237 | 220 | | |
238 | | - | |
| 221 | + | |
239 | 222 | | |
240 | | - | |
| 223 | + | |
241 | 224 | | |
242 | 225 | | |
243 | 226 | | |
| |||
900 | 883 | | |
901 | 884 | | |
902 | 885 | | |
903 | | - | |
| 886 | + | |
904 | 887 | | |
905 | 888 | | |
906 | 889 | | |
| |||
0 commit comments