workflow::test::run_with_teardown (public)

 workflow::test::run_with_teardown test_chunk teardown_chunk

Defined in packages/workflow/tcl/test/workflow-test-procs.tcl

Execute code in test chunk and guarantee that code in teardown_chunk will be executed even if error is thrown by the test_chunk.

Parameters:
test_chunk (required)
teardown_chunk (required)
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 aa_false aa_false (public) workflow::test::run_with_teardown workflow::test::run_with_teardown workflow::test::run_with_teardown->aa_false

Testcases:
No testcase defined.
Source code:
    set error_p [catch $test_chunk errMsg]

    set setup_error_stack $::errorInfo

    # Teardown
    eval $teardown_chunk

    if { $error_p } {    
        aa_false "error during setup: $errMsg - $setup_error_stack" $error_p
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: