Assert the capinfos newline as actually captured, and restore fixture cleanup even after an assertion failure.