From 4dd59ac91b5219c360f5ca4498258f7f62d76fca Mon Sep 17 00:00:00 2001 From: Mark Gates Date: Fri, 27 Dec 2024 20:53:18 -0700 Subject: [PATCH] add status "skipped" and consts --- testsweeper.cc | 3 ++- testsweeper.hh | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/testsweeper.cc b/testsweeper.cc index 32ff598..f08bdbc 100644 --- a/testsweeper.cc +++ b/testsweeper.cc @@ -504,7 +504,8 @@ void ParamOkay::print() const switch (values_[ index_ ]) { case 0: msg = "FAILED"; break; case 1: msg = "pass"; break; - case -1: msg = "no check"; break; + case no_check: msg = "no check"; break; + case skipped: msg = "skipped"; break; } printf( "%-*s ", width_, msg ); } diff --git a/testsweeper.hh b/testsweeper.hh index 148a935..f2708af 100644 --- a/testsweeper.hh +++ b/testsweeper.hh @@ -502,6 +502,9 @@ public: virtual void print() const; }; +const int no_check = -1; +const int skipped = -2; + // ============================================================================= typedef struct { int64_t m, n, k; } int3_t;