Treat a nonzero exit status as a failure (#3430)

And fix the test cases that have been failing ,undetected
This commit is contained in:
Dustin J. Mitchell 2024-05-03 09:58:09 -04:00 committed by GitHub
parent 50cfbe8b63
commit 28a46880a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 62 additions and 75 deletions

View file

@ -26,6 +26,7 @@
#include <cmake.h>
#include <test.h>
#include <Context.h>
#include <Eval.h>
////////////////////////////////////////////////////////////////////////////////
@ -44,6 +45,8 @@ bool get (const std::string& name, Variant& value)
int main (int, char**)
{
UnitTest t (52);
Context context;
Context::setContext(&context);
// Test the source independently.
Variant v;