pcloudcc-lneely/tests/unit-tests
Levi Neely 054a2a97a3 P2 cleanup: comments, make_fake_api stack alloc, find_str_param fix
1. test_plocks.c: add comment to test_upgrade_under_contention clarifying
   it verifies towrlock completion and holding_wrlock; notes that concurrent
   exclusivity is covered by test_stress().

2. test_pfsupload.c / make_fake_api: replace static-local psock_t with
   caller-supplied stack allocation (out parameter) to eliminate the
   multiple-calls-per-test footgun.

3. test_pfsupload.c / find_str_param: replace ternary
   `paramnamelen == strlen ? paramname : ""` with explicit length check +
   strncmp, matching the cleaner pattern used in find_num_param.

4. Makefile: add comment next to -Wl,--wrap=papi_send noting it redirects
   papi_send to __wrap_papi_send and is GNU ld only (not macOS Apple ld).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 07:43:50 +01:00
..
test_pdbg_path.c Add GitHub Actions CI workflow for unit tests (#379) 2026-03-10 17:48:42 +01:00
test_pfs_lock_ordering.c Fix pcl-zqv.5.7: eliminate deadlock in pfs_get_both_locks (#339) 2026-03-03 19:33:56 +01:00
test_pfstasks_db.c Fix P1 review findings in pfstasks_db test and helpers 2026-03-10 19:53:16 +01:00
test_pfstasks_tree.c Implement Tasks #3, #4, #5: tree tests, pfstasks tree layer, DB harness 2026-03-10 19:48:22 +01:00
test_pfsupload.c P2 cleanup: comments, make_fake_api stack alloc, find_str_param fix 2026-03-11 07:43:50 +01:00
test_pintervaltree.c Implement Tasks #3, #4, #5: tree tests, pfstasks tree layer, DB harness 2026-03-10 19:48:22 +01:00
test_plocks.c P2 cleanup: comments, make_fake_api stack alloc, find_str_param fix 2026-03-11 07:43:50 +01:00
test_prun.c Add GitHub Actions CI workflow for unit tests (#379) 2026-03-10 17:48:42 +01:00
test_ptask_free.c Refactor test_ptask_free to link production code via --wrap 2026-03-10 19:32:05 +01:00
test_ptools_errptr.c Fix ASAN/LSAN failures: ppath_home stack-use-after-scope + intentional leak 2026-03-10 19:59:33 +01:00
test_ptools_params.c Fix pcl-a1j: buffer overflow in ptools_create_backend_event() via unchecked sprintf and strcat (#355) 2026-03-07 18:35:43 +01:00
test_ptree.c Implement Tasks #3, #4, #5: tree tests, pfstasks tree layer, DB harness 2026-03-10 19:48:22 +01:00
test_read_response.cpp Add GitHub Actions CI workflow for unit tests (#379) 2026-03-10 17:48:42 +01:00