Skip to content

Merge pull request #5515 from sysown/v3.0-5499

660ed5a
Select commit
Loading
Failed to load commit list.
Merged

Unit test infrastructure: Glo* stubs, init helpers, and smoke test #5482

Merge pull request #5515 from sysown/v3.0-5499
660ed5a
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 22, 2026 in 9m 22s

Quality Gate failed

Failed conditions
19 Security Hotspots
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 294 in test/tap/tests/unit/protocol_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "free".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S42GLmRbbgKiJNsLF&open=AZ0S42GLmRbbgKiJNsLF&pullRequest=5482

Check failure on line 148 in test/tap/tests/unit/auth_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S5RE6hDGCGgKZTqys&open=AZ0S5RE6hDGCGgKZTqys&pullRequest=5482

Check failure on line 344 in test/tap/tests/unit/protocol_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Potential leak of memory pointed to by 'input3'

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S42GLmRbbgKiJNsLN&open=AZ0S42GLmRbbgKiJNsLN&pullRequest=5482

Check failure on line 447 in test/tap/tests/unit/query_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "malloc".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S3BWmufp2jxPAd4BD&open=AZ0S3BWmufp2jxPAd4BD&pullRequest=5482

Check failure on line 408 in test/tap/tests/unit/query_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "malloc".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S3BWmufp2jxPAd4BC&open=AZ0S3BWmufp2jxPAd4BC&pullRequest=5482

Check failure on line 52 in test/tap/tests/unit/smoke_test-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0R96hq4T-oZG71Hd9W&open=AZ0R96hq4T-oZG71Hd9W&pullRequest=5482

Check failure on line 302 in test/tap/tests/unit/auth_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S5RE6hDGCGgKZTqy_&open=AZ0S5RE6hDGCGgKZTqy_&pullRequest=5482

Check failure on line 337 in test/tap/tests/unit/protocol_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Potential leak of memory pointed to by 'input2'

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S42GLmRbbgKiJNsLM&open=AZ0S42GLmRbbgKiJNsLM&pullRequest=5482

Check failure on line 340 in test/tap/tests/unit/protocol_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "free".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S42GLmRbbgKiJNsLJ&open=AZ0S42GLmRbbgKiJNsLJ&pullRequest=5482

Check failure on line 51 in test/tap/tests/unit/smoke_test-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0R96hq4T-oZG71Hd9V&open=AZ0R96hq4T-oZG71Hd9V&pullRequest=5482

Check failure on line 317 in test/tap/tests/unit/protocol_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "free".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S42GLmRbbgKiJNsLH&open=AZ0S42GLmRbbgKiJNsLH&pullRequest=5482

Check failure on line 247 in test/tap/tests/unit/auth_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S5RE6hDGCGgKZTqy4&open=AZ0S5RE6hDGCGgKZTqy4&pullRequest=5482

Check failure on line 62 in test/tap/tests/unit/smoke_test-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0R96hq4T-oZG71Hd9Z&open=AZ0R96hq4T-oZG71Hd9Z&pullRequest=5482

Check failure on line 292 in test/tap/tests/unit/auth_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S5RE6hDGCGgKZTqy9&open=AZ0S5RE6hDGCGgKZTqy9&pullRequest=5482

Check failure on line 67 in test/tap/tests/unit/smoke_test-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0R96hq4T-oZG71Hd9a&open=AZ0R96hq4T-oZG71Hd9a&pullRequest=5482

Check failure on line 26 in lib/PgSQLCommandComplete.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Call a function from <locale> instead of a function from <ctype.h>.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0VhAf0TeeD3ppJHNsu&open=AZ0VhAf0TeeD3ppJHNsu&pullRequest=5482

Check failure on line 62 in test/tap/tests/unit/ffto_protocol_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add a "U" suffix to this constant, to make it explicitly "unsigned".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0VhAi_TeeD3ppJHNsx&open=AZ0VhAi_TeeD3ppJHNsx&pullRequest=5482

Check failure on line 111 in test/tap/tests/unit/query_cache_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this use of "malloc".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S3BWmufp2jxPAd4A0&open=AZ0S3BWmufp2jxPAd4A0&pullRequest=5482

Check failure on line 2585 in lib/PgSQL_HostGroups_Manager.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rewrite the code so that you no longer need this "delete".

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0TIez64T-oZG71OKku&open=AZ0TIez64T-oZG71OKku&pullRequest=5482

Check failure on line 84 in test/tap/tests/unit/auth_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S5RE6hDGCGgKZTqym&open=AZ0S5RE6hDGCGgKZTqym&pullRequest=5482

Check failure on line 115 in test/tap/tests/unit/hostgroups_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0Uh4Qw3JYEkI947C7_&open=AZ0Uh4Qw3JYEkI947C7_&pullRequest=5482

Check failure on line 178 in test/tap/tests/unit/protocol_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "std::size" to get the size of this array.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S42GLmRbbgKiJNsLC&open=AZ0S42GLmRbbgKiJNsLC&pullRequest=5482

Check failure on line 172 in test/tap/tests/unit/auth_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S5RE6hDGCGgKZTqyv&open=AZ0S5RE6hDGCGgKZTqyv&pullRequest=5482

Check failure on line 305 in test/tap/tests/unit/auth_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S5RE6hDGCGgKZTqzA&open=AZ0S5RE6hDGCGgKZTqzA&pullRequest=5482

Check failure on line 284 in test/tap/tests/unit/auth_unit-t.cpp

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

C-style cast removing const qualification from the type of a pointer may lead to an undefined behaviour.

See more on https://sonarcloud.io/project/issues?id=sysown_proxysql&issues=AZ0S5RE6hDGCGgKZTqy7&open=AZ0S5RE6hDGCGgKZTqy7&pullRequest=5482