(snapshot_name: &str)
| 252 | } |
| 253 | |
| 254 | fn bind_to_settings(snapshot_name: &str) -> SettingsBindDropGuard { |
| 255 | let mut settings = make_settings(); |
| 256 | |
| 257 | settings.set_snapshot_suffix(snapshot_name); |
| 258 | |
| 259 | settings.add_filter( |
| 260 | r"[^\s]+\#\d+\(can spill: (true|false)\) consumed .*?B, peak .*?B", |
| 261 | "Consumer(can spill: bool) consumed XB, peak XB", |
| 262 | ); |
| 263 | settings.add_filter( |
| 264 | r"Error: Failed to allocate additional .*? for .*? with .*? already allocated for this reservation - .*? remain available for the total memory pool: '.*?'", |
| 265 | "Error: Failed to allocate ", |
| 266 | ); |
| 267 | settings.add_filter( |
| 268 | r"Resources exhausted: Failed to allocate additional .*? for .*? with .*? already allocated for this reservation - .*? remain available for the total memory pool: '.*?'", |
| 269 | "Resources exhausted: Failed to allocate", |
| 270 | ); |
| 271 | |
| 272 | settings.bind_to_scope() |
| 273 | } |
| 274 | |
| 275 | #[test] |
| 276 | fn test_cli_with_unbounded_memory_pool() { |
no test coverage detected
searching dependent graphs…