mirror of https://github.com/sysown/proxysql
Fix review issues in FFTO E2E tests (#5516)
Two critical issues identified during code review: 1. test_ffto_mysql_transactions-t.cpp: TAP plan count mismatch. kPlannedTests was declared as 28 but the actual assertion count is 34 (1 connect + 9 scenario1 + 12 scenario2 + 3 scenario3 + 9 scenario4). This would cause TAP to report "planned 28 but ran 34" and fail unconditionally. Fixed by correcting the count to 34 and cleaning up the misleading breakdown comment. 2. test_ffto_mysql_concurrent-t.cpp: undefined behavior on pthread_create failure. If pthread_create failed for thread i, threads[i] was never initialized, but pthread_join(threads[i]) was still called unconditionally. Fixed by tracking which threads were successfully created via a bool array and only joining those. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>v3.0-5516
parent
7949016f62
commit
b16d1f44ee
Loading…
Reference in new issue