Make capture_test work on Mac.