Fix -error-pattern-p test