IBM Support

Run test calling function before the results in "missing return" error

Technote (troubleshooting)


Attempts to test an Ada package with IBM Rational Test RealTime result in a failed execution without any generated test and error "split aborted".


You see the following error.

Error while splitting traces file 'adapcgnt\Test.spt'. Split aborted.

No RIO instruction found.


No TIO instruction found.

C:\PROGRA~1\Rational\TESTRE~1\bin\intel\win32\attolpostproada "adapcgnt\TTest" "adapcgnt\TTest.rod"   -studio_log="C:\test\project\intermediates_files383930711.log" -VA=EVAL

raised PROGRAM_ERROR : test.adb:14 missing return

status 1


The problem occurs when in the package body of code under test you have a call of a function without a body before the initialization of the stub.

Resolving the problem

Add a body to the function.


In the test script (.ptu) add a boby to the function 'Create'


All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


# function Create (Val : in time) return T_Id is

# begin

   # If Standard."<"(Attol_f_Idx,0) Then

   # return 1;

# end if;


Document information

More support for: Rational Test RealTime
Component Testing: Ada

Software version: 7.5,,,, 8.0,,,

Operating system(s): Windows

Reference #: 1592862

Modified date: 29 March 2013

Translate this page: