Incorrect report from test of pointer with NONIL value
Attempts to test a pointer variable with IBM Rational Test RealTime result in an incorrect result in the report.
The preprocessor generated an incorrect variable type. In this way the compiler does not see the variable as a pointer. The test script compiler understands the variable type incorrectly.
Resolving the problem
Add the format "pointer" to the VAR line. Now you are sure that the compiler takes the variable as a pointer. In this way Rational Test RealTime will initialize and test as a pointer.
VAR a, pointer , init =0x12345678, ev =NONIL -- init and test as
More support for:
Rational Test RealTime
Component Testing: C
Software version: 7.5, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 8.0, 220.127.116.11, 18.104.22.168
Operating system(s): AIX, HP-UX, Linux, Solaris, Windows
Reference #: 1617291
Modified date: 15 November 2012