diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-11-13 13:55:42 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-11-13 13:55:42 -0500 |
| commit | 16e8bc9c3df35c0a1a538508fb74468798791107 (patch) | |
| tree | e29fce2a8c569bfb60810e5f114e47953e48dafd | |
| parent | 42fddc011ea3b395aa7f7bb5499bfc90f6235eb5 (diff) | |
pktst: LTE use correct operator + C compatibility
| -rw-r--r-- | pktst.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -142,18 +142,18 @@ inline bool flt_equal(T a, T b, T epsilon) { } \ } #define PK_TEST_ASSERT_LTE(expected, value) { \ - if ((value) >= (expected)) { \ + if ((value) <= (expected)) { \ PK_TEST_ASSERT_BODY(expected, value, <=) \ } \ } #define PK_TEST_ASSERT_LTE_RET(expected, value) { \ - if ((value) >= (expected)) { \ + if ((value) <= (expected)) { \ PK_TEST_ASSERT_BODY(expected, value, <=) \ return -1; \ } \ } #define PK_TEST_ASSERT_LTE_EXIT(expected, value) { \ - if ((value) >= (expected)) { \ + if ((value) <= (expected)) { \ PK_TEST_ASSERT_BODY(expected, value, <=) \ exit(1); \ } \ @@ -161,15 +161,15 @@ inline bool flt_equal(T a, T b, T epsilon) { #ifdef PK_IMPL_TST -#include "../pktmr.h" /* deleteme */ +#include "./pktmr.h" /* deleteme */ void pk_test_run_test_groups(pk_test_group_get **group_get_fns, unsigned long n_groups) { int result; unsigned long i; unsigned int k, pass_count, total_test_count, total_test_pass_count, test_group_count, test_group_pass_count; double elapsed_ms, group_ms, total_ms; - pk_tmr func_tmr, total_tmr; - pk_test_group *group; + struct pk_tmr func_tmr, total_tmr; + struct pk_test_group *group; fprintf(stdout, "\r\n"); fprintf(stdout, "[pk-test] Begin..\n"); |
