aboutsummaryrefslogtreecommitdiffstats
path: root/eztester.h
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-07-26 22:23:17 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-07-26 22:23:17 -0400
commit47f09225b07c33c7657ded5bbe4c7e4f98eb9e30 (patch)
tree3bedbf21474f480af8e4c47b3e0de6e79ab6fb81 /eztester.h
parent6f864672834e646aedbdf8c279b58226e8a2a2f3 (diff)
FEAT: test can now time out
Tests now have an extra field `max_time_ms` which is the max duration before it's process gets killed. A time of 0 ms is used to disable eztester managed timeouts, however a test can still return a timeout status which will be handled similarily.
Diffstat (limited to 'eztester.h')
-rw-r--r--eztester.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/eztester.h b/eztester.h
index 1f7e385..9a68651 100644
--- a/eztester.h
+++ b/eztester.h
@@ -29,6 +29,7 @@ typedef eztester_status(eztester_runner)();
typedef struct {
eztester_runner *runner;
const char *name;
+ unsigned int max_time_ms;
} eztester_test;
typedef struct {