autotest: fixed wait_pitch()