_xotcl-core__test_db_out_of_pools (private)

 _xotcl-core__test_db_out_of_pools

Defined in packages/xotcl-core/tcl/test/xotcl-test-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) db_available_pools db_available_pools (public) _xotcl-core__test_db_out_of_pools _xotcl-core__test_db_out_of_pools _xotcl-core__test_db_out_of_pools->aa_false _xotcl-core__test_db_out_of_pools->aa_log _xotcl-core__test_db_out_of_pools->aa_log_result _xotcl-core__test_db_out_of_pools->db_available_pools

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set one_too_many_pools [expr {[llength [db_available_pools ""]] + 1}]

    aa_false "Nesting $one_too_many_pools '::xo::dc foreach' does not return an error" [catch {
        set code {}
        for {set i 0} {$i < $one_too_many_pools} {incr i} {
            set code "::xo::dc foreach q {select 1 from dual} {$code}"
        }
        eval $code
    }]

    aa_false "Nesting $one_too_many_pools '::xo::dc multirow' does not return an error" [catch {
        set code {}
        for {set i 0} {$i < $one_too_many_pools} {incr i} {
            set code "::xo::dc multirow test_$i q {select 1 from dual} {$code}"
        }
        eval $code
    }]

}} {
          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" "test_db_out_of_pools (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: