Unsupported syntax used with test authoring API
Description
This defect occurs when you have issues in your test or suite configuration that might affect the precision of a Polyspace® analysis. Currently, the defect checker flags calls via function pointers in your test or suite configuration.
This checker is enabled if you specify the value pstunit
for the option Libraries used (-library)
or find defects in a test file from the Polyspace Platform (Polyspace Test) user interface. For more
information, see Check for Bugs and Run-Time Errors in C/C++ Tests and Functions Under Test (Polyspace Test).
Risk
Higher order calls reduce the precision of a Polyspace analysis. The calls might also indicate some programming error.
Fix
Refactor your code so that calls via function pointers are not needed during test or suite configuration.
Examples
Result Information
Group: Libraries Misuse |
Language: C | C++ |
Default: Off |
Command-Line Syntax:
PSTUNIT_UNSUPPORTED_SYNTAX |
Impact: Medium |
Version History
Introduced in R2023b