tests: every suite returns 1 for a failure, not the count
Six suites ended in `return Failures;`. `crafter-build test` takes an exit status of 77 for a skipped suite and then succeeds, and an exit status keeps 8 bits: 77 failing checks read as a skip, 256 as a pass. All nine now return 1 after any failure, as Engine, Sip and Sms did. Tested with 77 failing checks added to Ipsec, to Messages and to Sdp in turn (the fp6 journal's 2026-11-20-issues-2-5 capture, exit-status): before, `crafter-build test` ended `8 passed, 1 skipped` with exit status 0; now it ends `8 passed, 1 failed` with exit status 1.
This commit is contained in:
parent
f8cc160e1f
commit
a63132deb8
7 changed files with 7 additions and 8 deletions
|
|
@ -145,5 +145,5 @@ int main() {
|
|||
}
|
||||
|
||||
if (Failures == 0) std::println("Aka: all tests passed");
|
||||
return Failures;
|
||||
return Failures != 0; // not the count: `crafter-build test` takes an exit status of 77 for a skipped suite, and an exit status keeps 8 bits
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue