pcloudcc-lneely/tests
Levi Neely aec514b0a4 Add unit and smoke tests for pcl-26j bad-free (ppagecache, pfs, psyncer)
Unit test (test_pcl26j_free): exercises all four fixed call sites —
psync_request_range_t, synced_down_folder, folder_tasks_t, and
psync_sector_inlog_t — using --wrap=malloc/free to verify that
pmem_free() passes the header pointer to free(), not the data pointer.
Includes a harness self-check that confirms bare free(data_ptr) is
detected. Would have failed against pre-fix code.

Smoke test (smoke-test-large-read.sh): builds pcloudcc with ASAN,
starts the daemon, streams a large file (>=50 MB) from the FUSE mount
to /dev/null to force multi-range psync_request_range_t allocation and
teardown via psync_pagecache_free_request, then scans the ASAN log for
any bad-free reports.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 19:13:36 +01:00
..
fault-inject Fix pcl-zqv.5.7: eliminate deadlock in pfs_get_both_locks (#339) 2026-03-03 19:33:56 +01:00
helpers Add testability infrastructure: unit tests, extracted modules, CI integration (#381) 2026-03-11 07:52:35 +01:00
smoke-tests Add unit and smoke tests for pcl-26j bad-free (ppagecache, pfs, psyncer) 2026-03-22 19:13:36 +01:00
stubs Add GitHub Actions CI workflow for unit tests (#379) 2026-03-10 17:48:42 +01:00
unit-tests Add unit and smoke tests for pcl-26j bad-free (ppagecache, pfs, psyncer) 2026-03-22 19:13:36 +01:00
test_signal_safety.c Add signal safety test suite (#365) 2026-03-08 12:07:30 +01:00