From 63d5f63030eaa17d4c782e33d3919d697c46c489 Mon Sep 17 00:00:00 2001 From: fanasina Date: Wed, 12 Nov 2025 22:50:07 +0100 Subject: [PATCH] ftest: add HIDE_TEST macro to not execute the test, need to leave at least one TESTin the test file --- ytest_t/yftest/include/ftest/ftest.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ytest_t/yftest/include/ftest/ftest.h b/ytest_t/yftest/include/ftest/ftest.h index 5d9d9b3..1f527ab 100644 --- a/ytest_t/yftest/include/ftest/ftest.h +++ b/ytest_t/yftest/include/ftest/ftest.h @@ -925,6 +925,16 @@ do{ #define TEST(name_f) \ FTEST__(__COUNTER__,name_f) +// HIDE_TEST +// to not execute test, it helps to manualy avoid test in code, +// instead of comment or #if 0 #endif +#define H__TEST__(count, name_f) \ + void CONCAT(TEST_##name_f##____,count)(void) \ + + +#define HIDE_TEST(name_f)\ + H__TEST__(__COUNTER__,name_f) + /* #define ASSERT_TRUE(val)\ if(expected_true_f(val,#val,__func__) == false) {error_print("%s\n\n","Failure"); return;}