Design: 09.01.01.01/P01
This is an abstract, language-independent design. Grim
details may be found in the
corresponding source code.
You may return to the
documentation
for the module containing this program design, or to the
entire hierarchical table of
topics covered by the PVT.
PROGRAM 1: Error 1 handled by user
CHARACTERISTICS: nnnn
OPERATOR SCRIPT: This is a passive test, but take care to invoke it so
as to link in the standard PVT user-defined error handler. Since this
is the mode in which the non-error-handling tests are executed, this
program should be invoked in the normal way.
DESIGN:
Throughout this program, every time an error is signalled (as noted
by the tag "signals error"), the user-defined error handler saves
the error code, function identifier, and error file identifier in
an error table.
*** *** *** Generate errors; test absence of side effects *** *** ***
<open phigs>
<open phigs>: signals error
TEST: #SR 1
"If <open phigs> signals an error because PHIGS is open, it
should not cause any other effect."
pass/fail depending on (system state = PHIGS-open)
*** *** *** Results of user-defined error handling *** *** ***
TEST: #SR 1
"If <open phigs> is called and PHIGS is open, it should
return error code 001, function identifier 000, and the current
error file identifier to the user defined error handler."
pass/fail depending on (next entry in error table = expected values)
END PROGRAM 1