From acd338ea33de36d223cc6d301712eed4a9501e6c Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Thu, 15 Oct 2026 11:31:50 +0300 Subject: Fix snapshot storage and allocation failure correctness Account for cluster records discarded by snapshot scrolling, propagate snapshot allocation failures with an empty retryable view, and allocate resized screens before mutating visible state. Add bounded-memory and allocation-failure regressions, and update the saved diagnostic and audit report. --- tests/meson.build | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/meson.build') diff --git a/tests/meson.build b/tests/meson.build index 4cf559c..69f3c49 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -24,6 +24,7 @@ term_tests = [ ['gstore-test', files('gstore_test.c'), [], []], ['hist-test', files('hist_test.c'), [], []], ['history-text-test', files('history_text_test.c'), [thread_dep], []], + ['snapshot-scroll-arena-test', files('snapshot_scroll_arena_test.c'), [], []], ['view-test', files('view_test.c'), [], []], ['resize-property-test', files('resize_property_test.c'), [], []], ['term-resize-failure-test', files('resize_failure_test.c'), [dl_dep], ['extlib']], @@ -105,6 +106,17 @@ test('term-header-test', bash, args: [files('header_test.sh'), meson.project_source_root()], suite: 'unit', ) +if cc.has_link_argument('-Wl,--wrap=realloc') and cc.has_link_argument('-Wl,--wrap=malloc') + snapshot_failure_test = executable('snapshot-failure-test', 'snapshot_failure_test.c', + c_args: test_c_args, + link_args: ['-Wl,--wrap=realloc', '-Wl,--wrap=malloc'], + dependencies: [term_internal_dep], + ) + test('snapshot-failure-test', snapshot_failure_test, + env: test_env, + suite: 'unit', + ) +endif test('term-cross-test', bash, args: [files('cross_test.sh'), meson.project_source_root()], suite: 'portability', -- cgit v1.2.3