Defect fixes

You can find the defects that are fixed in this version of HCL DevOps Test Embedded (Test Embedded). You can also find the defects that were fixed in the earlier versions of Test Embedded. DevOps Test Embedded is the new name of HCL OneTest Embedded from 9.0.0 onwards.

Defects fixed in Test Embedded 2024.12 (9.0.0.1)

The defects fixed in the current version of Test Embedded are as follows:

Table 1. List of fixes in Test Embedded

ID /APAR

Description

TESTRT-4044

Previously, rule M10.4 was incorrectly raised for constant enums in MISRA 2012, which caused errors with constant expression. This problem is fixed.

TESTRT-4188

Previously, global variables used in initialization expressions or as parameters were incorrectly considered in data coupling analysis. This problem is fixed.

TESTRT-4313

Previously, the FDC generation for array indexing and non-simple assignments was incorrect due to improper handling of operand operations, which led to inaccurate code generation. This problem is fixed.

TESTRT-4327

Previously, the data coupling report generated multiple charts for each global variable. This problem is fixed. The report now presents one chart per global variable.

TESTRT-4221

Previously, when the source code was built by using crccc, the compilation abruptly stopped if the return code was not 0, indicating an error. This problem is fixed.

TESTRT-4225

Previously, crccc crashed when it processed unnamed structures due to issues that were caused by aggregate initialization. A pointer was null in a situation where null pointers were not allowed. This problem is fixed.

TESTRT-4239

Previously, rule M10.4 was incorrectly raised for an expression that used an implicitly cast constant. The root cause was that bFALSE was interpreted as an unsigned value during a comparison. This problem is fixed.

TESTRT-4240

Previously, rule M15.7 was incorrectly raised for nested if-else statements. The rule should only apply to if-else if statements and not when the second if is in a block. This problem is fixed.

TESTRT-4245

Previously, crccc crashed during the check of rule M10.1.5 due to the "or" operation between enums. This problem is fixed.

TESTRT-4289

Previously, the MISRA 2012 rule M10.5 was not verified for Boolean casts. The underlying reason was that the EDG type for Boolean was set to eok_bool_cast instead of eok_cast, which caused the general check to ignore these cases. This problem is fixed.

TESTRT-4224

Previously, the option to rename functions in attolcc4 did not work for stubs located in system libraries. Specifically, stubs from ignored folders such as sysinclude were not renamed. This problem is fixed.

TESTRT-4237

Previously, the exfile option in Coverage was case-sensitive on the Windows operating system, which caused issues with file exclusions. This problem is fixed.

TESTRT-4244

Previously, when you used MISRA 2012 from Studio, you faced issues with confruleupdater.jar due to failures related to the default JVM/JDK. This problem is fixed.

TESTRT-4213

Previously, when you accessed the Call Graph in Eclipse, the calculations for functions from the same compilation unit on the stub selection page were incorrect. This problem is fixed.

TESTRT-4150

Previously, the Create Application Result option in the contextual menu did not function as expected in Eclipse. This problem is fixed.

TESTRT-4219

Previously, a syntax error occurred in the attol_serv.adb file when the smart mode feature was used in Runtime ADA. This error caused compilation or runtime issues. This problem is fixed.

TESTRT-4302

Previously, you could not create a TDP for gprbuild in ADA. This problem is fixed.

TESTRT-4256

Previously, only the first error or warning from the ADA Front End was displayed in ATU ADA. This problem is fixed. Now, the errors and warnings are displayed correctly.

TESTRT-4276

Previously, rule M12.4 was reported with an incorrect location during code review in MISRA 2012. This problem is fixed.

TESTRT-4261

Previously, function templates that were not instantiated in the code were not instrumented in attolcc4, which resulted in incorrect coverage reports. Specifically, uninstantiated function templates appeared as comments in the reports and created issues when you merged coverage results from different runs. This problem is fixed.

Defects fixed in Test Embedded 2023.12 (9.0.0)

The defects fixed in the current version of Test Embedded are as follows:

Table 2. List of fixes in Test Embedded

ID /APAR

Description

TESTRT-3807

Previously, when you clicked the Open Call Graph option on the project or Refresh option from the View Menu drop-down list in DevOps Test Embedded for Eclipse IDE, a null pointer exception error message was displayed if the code contained ternary expressions with function pointers. This problem is fixed.

TESTRT-3801

Previously, when you selected the Convert to IBM Rational Test RealTime Project option from the menu on a project that was not a C project, a null pointer exception error message was displayed. This problem is fixed.

TESTRT-3796

Previously, if a ternary expression contained a constant, the coverage instrumentor failed to correctly determine the instrumentation position and completed the test run with an internal error. This problem is fixed.

TESTRT-3708

Previously, during an Ada unit test, post processing of a complex Data Description Type (DDT) file might fail that results in errors such as TestRT-F-LEXERRTDC and TestRT-E-BADRODFIL. This problem is fixed.

TESTRT-3706

Previously, when the server had only one license, the checkout process for that license occasionally failed. This problem is fixed.

TESTRT-3705

Previously, when you analyzed a package separately from another package by using Ada source code parser attolstartAda. The parser generated all the services for procedures in all sub-packages that resulted in the creation of large PTU files. This problem is fixed.

TESTRT-3619

Previously, documentation for the launcher attolcc (C and C++ Instrumentation Launcher) and for attolcc4 (C and C++ Instrumentor) was not updated. This problem is fixed.

TESTRT-3619

Previously, the Coverage C++ instrumentor (attolcc4) failed when the analyzed files included Visual Studio 2019 C++ header files. This problem is fixed.

TESTRT-3597

Previously, when you used the FORMAT instruction to format a 64-bit integer in a field of structured variables, the instruction failed to apply the specified format and displayed the value in the decimal format. This problem is fixed.

TESTRT-3568

Previously, when you included a VAR instruction with an expression in a PTU file that contained a shift operator, for example, 277<<22, the post processor failed to generate the report. This problem is fixed.

Defects fixed in earlier versions

You can find information about the defects fixed in each of the following versions:

Defects fixed in 8.3.2

The defects fixed in HCL OneTest Embedded 8.3.2 are as follows:

Table 3. List of fixes in 8.3.2

ID /APAR

Description

TESTRT-2080

When you ran a test suite, the Control Coupling and the Worst Stack Size reports were not generated.

This problem is fixed.

TESTRT-2275

Previously, HCL OneTest Embedded incorrectly calculated the essential type for the enum constants.

This problem is fixed.

TESTRT-3342

Previously, the essential type calculation on the enum constant was incorrect if the enum type declaration had no name.

This problem is fixed.

TESTRT-3343

Previously, Rule 10.3.2 was applied incorrectly on pointers during a Code Review.

This problem is fixed.

TESTRT-3340

Previously, for the rule M15.4, if there was a switch/case statement in a loop (for / do while / while), the break instructions relative to the switch/case was counted as a break in the loop.

This problem is fixed.

TESTRT-3366

Previously, when you used a custom Boolean type constant the essential type was incorrectly calculated.

This problem is fixed.

TESTRT-3372

Previously, HCL OneTest Embedded incorrectly performed Rule M10.1.1 checks on the preprocessing expressions.

This problem is fixed.

TESTRT-3314

Previously, the preprocessor of System Test crashed when displaying a variable that was declared as an enum. This problem is fixed.

TESTRT-3326

Previously, the count of the statement metric was incorrect for the atostart4.

This problem is fixed.

TESTRT-3335

Previously, attolstartC crashed on displaying a specific syntax error message.

This problem is fixed.

TESTRT-3350

Previously, the GNAT compiler failed to include the subdirectories specified under [myPath]/** when working in Studio or Ada. This problem is fixed. The notation [myPath]/** that is used by the GNAT compiler to specify the subdirectories is extended for C/C++.

TESTRT-3529

Previously, when you used the #h format in a .ptu file, the postprocessor generated a result with insignificant digits.

This problem is fixed.

TESTRT-3344

Previously, the preferences were not saved in attolstudio2.ini file if it existed or the attolstudio2.ini file was not created if it did not exist. This problem is fixed.

TESTRT-3425

Previously, there was no documentation about the command line of the HTML report generator. This problem is fixed.

TESTRT-3423

Previously, when you generated the Control Coupling report for the top node of the project explorer in Studio, the report did not display any data.

This problem is fixed.

TESTRT-3446

Previously, the '\xff' character in a C comment was incorrectly identified as an End Of File character. This problem is fixed.

Defects fixed in 8.3.1

The defects fixed in HCL OneTest Embedded 8.3.1 are as follows:

Table 4. List of fixes in 8.3.1

ID /APAR

Description

TESTRT-1578

Previously, attolcc4 might have taken a longer time to process a corelation between macros in the source file (.c) and the preprocessed file (.i).

This problem is fixed.

.

TESTRT-3055

Previously, in HCL OneTest Embedded 8.3.0.1, when a custom rule was used, a syntax error occurred in the generated perl file.

This problem is fixed.

TESTRT-3063

Previously, code review linker tool (crcld) took a very long time or crashed without any significant message in case of complex combination of files that are mutually inclusive.

This problem is fixed.

TESTRT-3074

Previously, if you customized the confrule file, and then ran a code review with a new version of One Test Embedded, the rule raised is in the format 'CRC_XX_YYY' instead of 'Rule MX.Y'.

This problem is fixed.

TESTRT-3135

Previously, HCL OneTest Embedded incorrectly identified the type of enum initialized with a casted constant when you ran a Code Review.

This problem is fixed.

TESTRT-3075

Previously, the crcld ignored the edited parameters in the confrule file for some rules and did not raise the rule.

This problem is fixed.

TESTRT-3085

Previously, on windows, attolcc4 incorrectly displayed a fatal error when trying to match the short and long DOS file names.

This problem is fixed.

Now, attolcc4 displays a message and not a fatal error.

TESTRT-3125

Previously, HCL OneTest Embeddedincorrectly applied rules E15.4 and M15.6.6. in the MISRA C 2012.

This problem is fixed.

TESTRT-3152

Previously, when you used the Studio command line to export an html report, HCL OneTest Embedded Studio disregarded the value provided for the html report.

This problem is fixed.

TESTRT-3147

Previously, the code review source code analysis failed due to an implicit cast of the pointer to an internal error.

This problem is fixed.

TESTRT-3118

Previously, when you ran the Code Review, HCL OneTest Embedded incorrectly raised Rule 10.1.1 when pointers were initialized with ‘0’.

This problem is fixed.

TESTRT-1915

Previously, on RedHat 7, the Call Graph in Eclipse IDE did not correctly display the links and colors.

This problem is fixed.

TESTRT-2610

Previously, the rod2xrd binary crashes if the rod file was too large as a result of running a large test.

This problem is fixed.

Defects fixed in 8.3.0

The defects fixed in HCL OneTest Embedded 8.3.0 are as follows:

Table 5. List of fixes in 8.3.0

ID /APAR

Description

TESTRT-2370

Requirement link: Should add http:// or https:// when required

TESTRT-2375

Control coupling HTML report - bad display in internal eclipse browser.

TESTRT-1447

Too much information in the 'output window' made the user interface 'studio' crash. Workaround: Set the environment variable TESTRT_LOGFILE to point to a file in which all the login information was diverted.

TESTRT-2604

When opening all the reports in Studio, the process tries to open nonexisting reports.

TESTRT-2739

The settings 'Additional included system directories' is not taken into account in Code Review.

This problem is fixed.