diff options
| author | Christian Cunningham <cc@local.lan> | 2025-03-08 00:47:14 -0800 |
|---|---|---|
| committer | Christian Cunningham <cc@local.lan> | 2025-03-08 00:47:14 -0800 |
| commit | f9bf108bc0438562c5788ba40024f51031031fa4 (patch) | |
| tree | 0639a202477ffd10be1293fbc7e4cbc0a9a39cbc /include/test | |
| parent | 88063160c9c9ff40f4fd006741ea1107b7e6a328 (diff) | |
Time tests
Diffstat (limited to 'include/test')
| -rw-r--r-- | include/test/lib/time.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/test/lib/time.h b/include/test/lib/time.h new file mode 100644 index 0000000..cdf464e --- /dev/null +++ b/include/test/lib/time.h @@ -0,0 +1,16 @@ +#ifndef INC_TEST_LIB_TIME_H +#define INC_TEST_LIB_TIME_H + +#include <test/__meta__.h> +#ifndef TEST_RESULT +#define TEST_RESULT(subtest,result,n,n_success) _TEST_RESULT("LIB/TIME",subtest,result,n,n_success) +#endif + +#include <lib/time.h> + +bool_t test_diff_time(const struct timespec *time1, const struct timespec *time0, double result); + +// Meta test function +bool_t TEST_lib_time(); + +#endif |
