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

Technote (troubleshooting)


Problem(Abstract)

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

Symptom

You see the following error.

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

No RIO instruction found.

Postprocessing...

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



Cause

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.

EXAMPLE

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

Disclaimer

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.

DEFINE STUB test

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

# begin

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

   # return 1;

# end if;

#end;

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Test RealTime
Component Testing: Ada

Software version:

7.5, 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

Operating system(s):

Windows

Reference #:

1592862

Modified date:

2013-03-29

Translate my page

Machine Translation

Content navigation