diff options
author | c | 2023-12-05 12:43:06 -0500 |
---|---|---|
committer | c | 2023-12-05 12:43:06 -0500 |
commit | 56e337c634559e47bec6639a714635ec246a58f5 (patch) | |
tree | 1485a0857f3987c87900e22ed0e2bb5b336fe805 /src/include | |
parent | 3139398d475830f976895d27e772d4e926490881 (diff) |
Removed hacked in "testing framework" (HLKT).
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/hlkt.h | 29 | ||||
-rw-r--r-- | src/include/token.h | 1 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/include/hlkt.h b/src/include/hlkt.h deleted file mode 100644 index c4db5e2..0000000 --- a/src/include/hlkt.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef HLKT_H -#define HLKT_H - -#include "util.h" - -static int hlkt_run = 0; /* Number of tests run. */ -static int hlkt_failed = 0; /* Number of tests that have failed. */ - -#define HLKT_HIDE(stuff) do { stuff } while (0) - -#define HLKT_LOG() HLKT_HIDE( \ - if ((hlkt_run > 0) && (hlkt_failed > 0)) { \ - log_err("HLKT: %d/%d tests failed", hlkt_failed, hlkt_run); \ - } else { \ - log_dbg("HLKT: all %d tests passed", hlkt_run); \ - } \ -) - -#define HLKT_ASS(pred) HLKT_HIDE( \ - hlkt_run ++; \ - if (! (pred)) { \ - hlkt_failed ++; \ - log_war("HLKT: test failed: %s/%s/%d", __FILE__, __func__, __LINE__); \ - } else { \ - log_dbg("HLKT: test passed: %s/%s/%d", __FILE__, __func__, __LINE__); \ - } \ -) - -#endif diff --git a/src/include/token.h b/src/include/token.h index f86c47f..f95f066 100644 --- a/src/include/token.h +++ b/src/include/token.h @@ -2,7 +2,6 @@ #define TOKEN_H #include "util.h" -#include "hlkt.h" typedef enum TOKEN_TYPE { TOKEN_UNKNOWN, |