Martin Vogel
63f0a6c0e7
test(parse-coverage): free the extraction results in the #1610 tests
...
LeakSanitizer on CI caught all five new tests leaking their CBMFileResult:
Indirect leak of 24 byte(s) ... ts_tree_new
cbm_extract_file_ex cbm.c:1256
do_extract test_parse_coverage.c:39
test_dockerfile_missing_final_newline_not_flagged_issue1610:272
SUMMARY: AddressSanitizer: 706504 byte(s) leaked in 189 allocation(s)
Every pre-existing test in this suite calls cbm_free_result before PASS; the new
ones did not. The local run could not have found it - LeakSanitizer reports
"detect_leaks is not supported on this platform" on macOS arm64, so this class
of defect is CI-only here.
Each test now captures what it asserts, frees, and only then decides, so the
early-FAIL paths do not leak either. The cross-grammar loop prints its
diagnostic before freeing so the failure message keeps naming the grammar.
While correcting the guard, a first attempt left ASSERT_TRUE(flagged ||
has_ranges || true) in real_error_before_eof_still_flagged - always true, and it
would have silently disarmed the guard that stops the EOF suppression from being
over-broad. Removed. The guard is re-proven binding: forcing
cbm_is_eof_terminator_miss to return true makes EIGHT tests fail, including both
guards, and restoring it returns the suite to green.
parse_coverage 14 passed.
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com >
2026-08-15 17:22:59 +02:00
..
2026-08-08 17:35:05 +02:00
2026-08-03 01:51:30 +02:00
2026-08-11 13:37:32 +02:00
2026-06-05 21:53:25 +02:00
2026-06-05 21:53:25 +02:00
2026-07-13 01:50:03 +02:00
2026-03-15 22:37:34 +01:00
2026-08-11 13:37:32 +02:00
2026-08-12 12:52:46 +02:00
2026-08-01 17:36:21 +04:00
2026-05-30 18:26:44 +02:00
2026-07-11 03:28:32 +02:00
2026-06-29 09:45:28 -06:00
2026-07-22 17:48:20 +02:00
2026-08-08 17:35:05 +02:00
2026-07-18 15:52:50 +02:00
2026-08-15 15:44:03 +02:00
2026-07-13 01:50:02 +02:00
2026-07-14 21:13:52 +02:00
2026-08-15 10:37:24 +03:00
2026-08-14 18:27:06 +02:00
2026-08-06 08:24:23 -04:00
2026-08-04 16:37:06 +02:00
2026-06-06 22:16:04 +02:00
2026-08-15 08:44:20 +02:00
2026-08-14 06:46:05 -04:00
2026-07-18 15:52:50 +02:00
2026-08-15 08:57:18 +02:00
2026-08-08 17:35:05 +02:00
2026-08-14 20:04:08 +02:00
2026-08-14 06:46:05 -04:00
2026-08-12 12:47:59 +02:00
2026-08-09 13:06:42 +02:00
2026-07-18 11:48:59 +02:00
2026-08-11 13:37:32 +02:00
2026-08-11 13:37:32 +02:00
2026-07-18 01:26:08 +02:00
2026-07-18 01:26:08 +02:00
2026-08-13 14:04:51 +02:00
2026-07-21 15:32:15 +02:00
2026-08-06 16:06:43 +02:00
2026-06-23 06:38:45 +09:00
2026-06-23 06:38:45 +09:00
2026-03-25 09:28:11 +01:00
2026-08-06 18:15:48 +02:00
2026-07-18 15:52:50 +02:00
2026-07-18 15:52:50 +02:00
2026-06-07 12:35:53 +02:00
2026-06-08 22:55:23 +02:00
2026-08-15 08:57:12 +02:00
2026-07-16 01:21:45 +02:00
2026-06-05 21:53:25 +02:00
2026-07-02 00:37:52 +02:00
2026-08-06 03:30:32 +02:00
2026-07-18 15:52:50 +02:00
2026-06-05 21:53:25 +02:00
2026-08-01 01:29:20 +02:00
2026-06-07 19:13:01 +02:00
2026-06-07 19:13:01 +02:00
2026-06-07 19:13:01 +02:00
2026-06-27 16:23:26 +02:00
2026-06-07 20:05:24 +02:00
2026-06-07 20:05:24 +02:00
2026-06-27 16:23:26 +02:00
2026-07-08 00:05:19 +05:30
2026-08-06 08:26:45 -04:00
2026-05-21 22:52:16 +02:00
2026-07-24 16:08:42 +02:00
2026-08-06 00:33:34 +02:00
2026-08-09 16:37:19 +02:00
2026-08-04 04:58:44 +02:00
2026-07-17 22:32:53 +02:00
2026-08-14 20:01:06 +02:00
2026-06-22 22:04:31 +02:00
2026-07-18 13:48:06 +02:00
2026-06-02 18:52:37 +02:00
2026-07-18 15:52:50 +02:00
2026-07-18 15:52:50 +02:00
2026-08-06 18:15:48 +02:00
2026-07-31 03:42:43 +02:00
2026-07-18 14:38:07 +02:00
2026-06-28 13:05:05 +02:00
2026-08-06 18:15:48 +02:00
2026-03-15 22:37:34 +01:00
2026-08-14 20:01:06 +02:00
2026-07-18 01:26:08 +02:00
2026-06-08 22:55:23 +02:00
2026-07-18 15:52:50 +02:00
2026-08-15 09:02:32 +02:00
2026-08-13 19:16:19 +02:00
2026-08-11 17:01:24 +02:00
2026-07-26 00:55:24 +02:00
2026-06-12 02:17:39 +02:00
2026-07-29 17:05:10 +02:00
2026-08-03 17:44:52 +02:00
2026-07-24 16:08:42 +02:00
2026-08-15 17:22:59 +02:00
2026-07-03 19:57:01 +02:00
2026-07-18 15:52:50 +02:00
2026-07-18 15:52:50 +02:00
2026-08-08 17:35:05 +02:00
2026-08-14 06:11:05 +03:00
2026-07-18 01:26:08 +02:00
2026-07-18 01:26:08 +02:00
2026-08-10 16:40:31 +02:00
2026-08-11 05:30:17 +02:00
2026-05-09 14:16:15 +02:00
2026-07-18 15:52:50 +02:00
2026-07-10 21:07:11 +02:00
2026-08-11 17:01:24 +02:00
2026-08-13 23:52:21 +02:00
2026-08-14 00:21:31 +02:00
2026-06-23 13:52:08 -03:00
2026-07-18 15:52:50 +02:00
2026-07-18 15:52:50 +02:00
2026-08-03 15:42:32 +02:00
2026-07-18 11:48:59 +02:00
2026-08-12 20:57:43 +02:00
2026-08-08 17:35:05 +02:00
2026-07-18 01:26:08 +02:00
2026-08-06 18:33:13 +02:00
2026-06-28 21:57:35 -06:00
2026-08-13 16:36:27 -04:00
2026-07-25 00:37:05 +02:00
2026-08-07 14:58:22 +02:00
2026-07-13 11:43:00 +03:00
2026-07-18 13:31:18 +02:00
2026-07-19 12:35:58 +05:30
2026-03-20 20:32:38 +01:00
2026-08-01 01:29:20 +02:00
2026-07-03 20:16:39 +02:00
2026-08-12 11:52:38 +02:00
2026-07-17 22:32:53 +02:00
2026-07-13 01:48:29 +02:00
2026-03-24 23:48:23 +01:00
2026-06-24 20:33:52 +05:30
2026-08-13 00:21:13 +02:00
2026-03-24 23:48:23 +01:00
2026-07-18 15:52:50 +02:00
2026-06-10 12:11:02 +02:00
2026-07-21 15:32:15 +02:00
2026-08-09 13:06:42 +02:00
2026-04-06 14:34:07 +02:00
2026-08-08 17:35:05 +02:00
2026-08-09 17:17:05 +02:00
2026-07-23 00:53:41 +02:00
2026-08-08 17:35:05 +02:00
2026-06-05 21:53:25 +02:00
2026-08-14 00:21:31 +02:00
2026-08-14 04:40:07 +02:00
2026-08-14 12:48:40 +02:00
2026-07-27 23:05:16 +02:00
2026-08-14 14:32:28 +02:00
2026-08-06 00:33:34 +02:00
2026-06-06 19:48:48 +02:00
2026-07-29 23:50:53 +02:00
2026-08-06 18:00:08 +02:00
2026-03-24 23:48:23 +01:00
2026-04-15 23:56:03 +02:00