_acs-tcl__ad_job (private)

 _acs-tcl__ad_job

Defined in packages/acs-tcl/tcl/test/utilities-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) ad_job ad_job (public) _acs-tcl__ad_job _acs-tcl__ad_job _acs-tcl__ad_job->aa_equals _acs-tcl__ad_job->aa_log _acs-tcl__ad_job->aa_log_result _acs-tcl__ad_job->aa_true _acs-tcl__ad_job->ad_job

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set queue __test_acs_tcl_ad_job

    set result [ad_job -queue $queue expr {1 + 1}]

    aa_equals "Result is 2"  $result 2

    aa_true "Error when timeout is reached" [catch {
        ad_job -queue $queue -timeout 0.1 after 200
    }]

    aa_true "Queue exists after calling the proc" {
        $queue in [ns_job queues]
    }
}} {
          aa_log "Running testcase body $body_count"
          set ::__aa_test_indent [info level]
          set catch_val [catch $testcase_body msg]
          if {$catch_val != 0 && $catch_val != 2} {
              aa_log_result "fail" "ad_job (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo"
          }
          incr body_count
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: