Skip to content

fix password test issue for freebsd/macos

5d719ba
Select commit
Loading
Failed to load commit list.
Open

macos/freebsd portability #2326

fix password test issue for freebsd/macos
5d719ba
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Mar 20, 2026 in 2m 32s

Annotations

Check warning on line 42 in tests/probes/password/test_probes_password.xml.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace backticks with '$()' syntax for command substitution.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0Mp67wOAXE0OXa4vBo&open=AZ0Mp67wOAXE0OXa4vBo&pullRequest=2326

Check warning on line 24 in tests/API/XCCDF/unittests/test_xccdf_result_sysinfo_platform.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make the type of this variable a pointer-to-const. The current type of "fact" is "struct xccdf_target_fact *".

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHd6XPeeTARtw017&open=AZ0MgHd6XPeeTARtw017&pullRequest=2326

Check warning on line 17 in tests/probes/password/test_probes_password_offline_fallback.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Local variable 'RF' should use lower_case naming convention.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHe_XPeeTARtw02B&open=AZ0MgHe_XPeeTARtw02B&pullRequest=2326

Check failure on line 17 in tests/probes/shadow/test_probes_shadow_offline_unsupported.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHfIXPeeTARtw02E&open=AZ0MgHfIXPeeTARtw02E&pullRequest=2326

Check warning on line 37 in tests/probes/password/test_probes_password.xml.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace backticks with '$()' syntax for command substitution.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0Mp67wOAXE0OXa4vBm&open=AZ0Mp67wOAXE0OXa4vBm&pullRequest=2326

Check warning on line 50 in tests/probes/password/test_probes_password.xml.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace backticks with '$()' syntax for command substitution.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0Mp67wOAXE0OXa4vBp&open=AZ0Mp67wOAXE0OXa4vBp&pullRequest=2326

Check warning on line 41 in src/XCCDF_POLICY/xccdf_policy_remediate.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Move these 10 #include directives to the top of the file.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHdGXPeeTARtw015&open=AZ0MgHdGXPeeTARtw015&pullRequest=2326

Check failure on line 17 in tests/probes/runlevel/test_probes_runlevel_unsupported.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHerXPeeTARtw01_&open=AZ0MgHerXPeeTARtw01_&pullRequest=2326

Check warning on line 31 in tests/API/XCCDF/unittests/test_xccdf_result_sysinfo_platform.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Value stored to 'saw_mac' is never read

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHd6XPeeTARtw018&open=AZ0MgHd6XPeeTARtw018&pullRequest=2326

Check warning on line 16 in tests/probes/password/test_probes_password_offline_fallback.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Local variable 'DF' should use lower_case naming convention.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHe_XPeeTARtw02A&open=AZ0MgHe_XPeeTARtw02A&pullRequest=2326

Check warning on line 96 in src/OVAL/probes/unix/password_probe.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define each identifier in a dedicated statement.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0Mp63kOAXE0OXa4vBl&open=AZ0Mp63kOAXE0OXa4vBl&pullRequest=2326

Check failure on line 5 in tests/API/probes/test_memusage_platform.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHeCXPeeTARtw01-&open=AZ0MgHeCXPeeTARtw01-&pullRequest=2326

Check warning on line 55 in tests/probes/password/test_probes_password.xml.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace backticks with '$()' syntax for command substitution.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0Mp67wOAXE0OXa4vBr&open=AZ0Mp67wOAXE0OXa4vBr&pullRequest=2326

Check failure on line 34 in tests/probes/password/test_probes_password_offline_fallback.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHe_XPeeTARtw02D&open=AZ0MgHe_XPeeTARtw02D&pullRequest=2326

Check failure on line 5 in tests/API/XCCDF/unittests/test_xccdf_result_sysinfo_platform.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHdzXPeeTARtw016&open=AZ0MgHdzXPeeTARtw016&pullRequest=2326

Check warning on line 33 in tests/API/XCCDF/unittests/test_xccdf_result_sysinfo_platform.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Value stored to 'saw_asset_mac' is never read

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHd6XPeeTARtw019&open=AZ0MgHd6XPeeTARtw019&pullRequest=2326

Check failure on line 18 in tests/probes/password/test_probes_password_offline_fallback.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use '[[' instead of '[' for conditional tests. The '[[' construct is safer and more feature-rich.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0MgHe_XPeeTARtw02C&open=AZ0MgHe_XPeeTARtw02C&pullRequest=2326

Check warning on line 52 in tests/probes/password/test_probes_password.xml.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace backticks with '$()' syntax for command substitution.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0Mp67wOAXE0OXa4vBq&open=AZ0Mp67wOAXE0OXa4vBq&pullRequest=2326

Check warning on line 95 in src/OVAL/probes/unix/password_probe.c

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define each identifier in a dedicated statement.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0Mp63kOAXE0OXa4vBk&open=AZ0Mp63kOAXE0OXa4vBk&pullRequest=2326

Check warning on line 39 in tests/probes/password/test_probes_password.xml.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace backticks with '$()' syntax for command substitution.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0Mp67wOAXE0OXa4vBn&open=AZ0Mp67wOAXE0OXa4vBn&pullRequest=2326

Check warning on line 55 in tests/probes/password/test_probes_password.xml.sh

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of using the literal '{print $1}' 5 times.

See more on https://sonarcloud.io/project/issues?id=OpenSCAP_openscap&issues=AZ0Mp67wOAXE0OXa4vBs&open=AZ0Mp67wOAXE0OXa4vBs&pullRequest=2326