Skip to main content

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

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

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

Content navigation