perror: test for output mismatch