mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
error out on superfluous TODOs
If a test is marked as TODO, but matches its EXRESULT, this means the TODO is superfluous and (probably) a change fixed what the TODO was for. Instead of more or less ignoring such superfluous TODOs, error out to make the change visible instantly.
This commit is contained in:
parent
608af94dff
commit
4b26850e14
1 changed files with 7 additions and 3 deletions
|
@ -131,10 +131,14 @@ sub test_profile {
|
|||
} elsif ($coredump) {
|
||||
ok(0, "$profile: Produced core dump (signal $signal): $description");
|
||||
} elsif ($istodo) {
|
||||
if ($expass != $result) {
|
||||
fail("TODO passed unexpectedly: $profile: $description");
|
||||
} else {
|
||||
TODO: {
|
||||
local $TODO = "Unfixed testcase.";
|
||||
ok($expass ? !$result : $result, "TODO: $profile: $description");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ok($expass ? !$result : $result, "$profile: $description");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue