IBM Support

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

Troubleshooting


Problem

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;

[{"Product":{"code":"SSSHUF","label":"Rational Test RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Component Testing: Ada","Platform":[{"code":"PF033","label":"Windows"}],"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","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21592862