| 295 | |
| 296 | |
| 297 | void FetcherCacheTest::TearDown() |
| 298 | { |
| 299 | if (HasFatalFailure()) { |
| 300 | // A gtest macro has terminated the test prematurely. Now stream |
| 301 | // additional info that might help debug the situation to where |
| 302 | // gtest writes its output: cout. |
| 303 | |
| 304 | cout << "Begin listing sandboxes" << endl; |
| 305 | foreach (const Path& path, sandboxes) { |
| 306 | logSandbox(path); |
| 307 | } |
| 308 | cout << "End sandboxes" << endl; |
| 309 | } |
| 310 | |
| 311 | driver->stop(); |
| 312 | driver->join(); |
| 313 | |
| 314 | master.reset(); |
| 315 | slave.reset(); |
| 316 | |
| 317 | MesosTest::TearDown(); |
| 318 | } |
| 319 | |
| 320 | |
| 321 | // TODO(bernd-mesos): Make this abstractions as generic and generally |