Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01b59b4

Browse files
committed
take into account utassert and utassert2 packages from migration project
1 parent 1093394 commit 01b59b4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

source/core/ut_expectation_processor.pkb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,10 @@ create or replace package body ut_expectation_processor as
129129
l_object_name varchar2(1000);
130130
-- in 12.2 format_call_stack reportes not only package name, but also the procedure name
131131
-- when 11g and 12c reports only package name
132-
c_expectation_search_pattern constant varchar2(500) := '(.*\.UT_EXPECTATION_RESULT\s+)(.*\.UT_EXPECTATION[A-Z0-9#_$]*(\.[A-Za-z0-9$#_]+)?.*\s+)+(.*\.UT(\.FAIL)?\s+)?(.*)\s';
132+
c_expectation_search_pattern constant varchar2(500) :=
133+
'(.*\.UT_EXPECTATION_RESULT\s+)(.*\.UT_EXPECTATION[A-Z0-9#_$]*(\.[A-Za-z0-9$#_]+)?.*?)+(.*\.UT(\.FAIL)?\s+)?(.*\.UTASSERT2?(\.[A-Za-z0-9$#_]+)?.*?$\s+)*(.*?$)';
133134
begin
134-
l_caller_stack_line := regexp_substr( c_call_stack, c_expectation_search_pattern, 1, 1, 'm', 6);
135+
l_caller_stack_line := regexp_substr( c_call_stack, c_expectation_search_pattern, 1, 1, 'mn', 8);
135136
l_line_no := to_number( regexp_substr(l_caller_stack_line,'^\dx[0-9a-f]+\s+(\d+)',subexpression => 1) );
136137
l_caller_type_and_name := substr( l_caller_stack_line, 23 );
137138
if l_caller_stack_line like '%.%' then

0 commit comments

Comments
 (0)