Incorrect report from test of pointer with NONIL value

Technote (troubleshooting)


Problem(Abstract)

Attempts to test a pointer variable with IBM Rational Test RealTime result in an incorrect result in the report.

Cause

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.


EXAMPLE

VAR a, pointer , init =0x12345678, ev =NONIL -- init and test as
a pointer


Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Test RealTime
Component Testing: C

Software version:

7.5, 7.5.0.1, 7.5.0.2, 7.5.0.3, 7.5.0.4, 7.5.0.5, 7.5.0.6, 8.0, 8.0.0.1, 8.0.0.2

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1617291

Modified date:

2012-11-15

Translate my page

Machine Translation

Content navigation