IBM Support

How to test a returning NULL for a stub that returns a char*

Question & Answer


Question

How can you test a returning null for a stub that returns a char* when performing Component Testing for C with IBM® Rational Test RealTime®?

[{"Product":{"code":"SSSHUF","label":"Rational Test RealTime"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Component Testing: C","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"","label":"Tru64 UNIX"},{"code":"PF033","label":"Windows"}],"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;8.0.0.3","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
04 June 2026

UID

swg21304191