Syntax errors in tests are not properly handled by the test suite

Reported by Alexey Kopytov on 2013-07-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Medium
Alexey Kopytov
2.0
Medium
Alexey Kopytov
2.1
Medium
Alexey Kopytov

Bug Description

If bash throws a syntax error in a test script, the test suite marks the test passed. The reason is that $? in an exit trap will have a zero value in case of a syntax error. Which doesn't make any sense, but a workaround for this behavior should be implemented.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers