EPILOGUE
C++ Test Script Language
Syntax
EPILOGUE { <epilogue item>* }
Location
TEST CLASS | TEST SUITE
Description
The EPILOGUE structure defines native code that is to be executed whenever the execution of the surrounding test class ends. This code is executed after other test class components.
An EPILOGUE statement may appear at most once in a test class. In an object-context, an EPILOGUE can be compared to a destructor.
<epilogue item> may be one of the following entities:
-
COMMENT
-
PRINT
-
Native statement
Order is meaningful.
Example
TEST CLASS ATest
{
PROLOGUE {
#Stack *s = new Stack(20);
#s->fill ();
}
EPILOGUE {
#delete s;
}
TEST CASE tc1 {
CHECK (!s->full ());
}
RUN {
tc1;
}
}