diff options
| author | Lion Kortlepel <[email protected]> | 2026-01-22 22:01:42 +0100 |
|---|---|---|
| committer | Lion Kortlepel <[email protected]> | 2026-01-22 22:01:42 +0100 |
| commit | 6af30c5ea9caf81289f7b8c3db634c636914a62c (patch) | |
| tree | c24597f5a11acc70d489cb2072a60f2300d4523b /ls_test.h | |
| parent | 247f33194da460497567c0af7fe7e98a989e81cd (diff) | |
| download | test-6af30c5ea9caf81289f7b8c3db634c636914a62c.tar.zst test-6af30c5ea9caf81289f7b8c3db634c636914a62c.zip | |
fix: fix error which caused OK case miscountingv1.2
bump 1.2
Diffstat (limited to 'ls_test.h')
| -rw-r--r-- | ls_test.h | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -1,6 +1,6 @@ /* Lion's Standard (LS) test harness. * - * Version: 1.1 + * Version: 1.2 * Website: https://libls.org * Repo: https://github.com/libls/test * SPDX-License-Identifier: MIT @@ -115,7 +115,6 @@ ++lst_fail; \ return 1; \ } \ - ++lst_ok; \ } while (0) #define ASSERT_NEQ(a, b, fmt) \ @@ -132,7 +131,6 @@ ++lst_fail; \ return 1; \ } \ - ++lst_ok; \ } while (0) #define ASSERT_LT(a, b, fmt) \ @@ -149,7 +147,6 @@ ++lst_fail; \ return 1; \ } \ - ++lst_ok; \ } while (0) #define ASSERT_LE(a, b, fmt) \ @@ -166,7 +163,6 @@ ++lst_fail; \ return 1; \ } \ - ++lst_ok; \ } while (0) #define ASSERT_GT(a, b, fmt) \ @@ -183,7 +179,6 @@ ++lst_fail; \ return 1; \ } \ - ++lst_ok; \ } while (0) #define ASSERT_GE(a, b, fmt) \ @@ -200,7 +195,6 @@ ++lst_fail; \ return 1; \ } \ - ++lst_ok; \ } while (0) #define LS_CAT2(a, b) a##b #define LS_CAT(a, b) LS_CAT2(a, b) @@ -217,7 +211,6 @@ extern lst_func* lst_funcs; extern int lst_n; extern int lst_cap; extern int lst_fail; -extern int lst_ok; void lst_reg(lst_func f); @@ -229,7 +222,6 @@ lst_func* lst_funcs; int lst_n; int lst_cap; int lst_fail = 0; -int lst_ok = 0; void lst_reg(lst_func f) { if (lst_n == lst_cap) { @@ -276,8 +268,8 @@ static int ls_test_main(int argc, char** argv) { } end: - fprintf(stderr, "%d succeeded, %d failed, %d total\n", lst_ok, lst_fail, - lst_ok + lst_fail); + fprintf(stderr, "%d succeeded, %d failed, %d total\n", lst_n - lst_fail, lst_fail, + lst_n); free(lst_funcs); if (lst_fail > 0) { |
