From fc6dbfdb88a97208f57cdc4877e944afd48349fc Mon Sep 17 00:00:00 2001 From: pavel-zotov Date: Wed, 23 Aug 2023 11:19:01 +0300 Subject: [PATCH] Updated tests\bugs\gh_7553_test.py: adjust expected stdout/stderr to current FB version. --- tests/bugs/gh_7553_test.py | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/tests/bugs/gh_7553_test.py b/tests/bugs/gh_7553_test.py index a08dd53b..69f327f4 100644 --- a/tests/bugs/gh_7553_test.py +++ b/tests/bugs/gh_7553_test.py @@ -6,7 +6,7 @@ ISSUE: https://github.com/FirebirdSQL/firebird/issues/7553 TITLE: Firebird 5 profiler error with subselects DESCRIPTION: Test checks that: - 1) profiler viewa *do* have expected records after code described in the ticket; + 1) profiler snapshot tables *do* have expected records after code described in the ticket; 2) firebird.log have *no* differences related to FK violation in PLG$PROF_RECORD_SOURCES NOTES: Confirmed bug on 5.0.0.1030. @@ -73,6 +73,18 @@ def test_1(act: Action, capsys): P_RECSOURCE_CURSOR_ID 1 P_RECSOURCE_OPEN_COUNTER 0 P_RECSOURCE_FETCH_COUNTER 1 + + P_SESSIONS_PROFILE_ID 1 + P_PSQL_COUNTER_ID 1 + P_RECSOURCE_CURSOR_ID 1 + P_RECSOURCE_OPEN_COUNTER 0 + P_RECSOURCE_FETCH_COUNTER 1 + + P_SESSIONS_PROFILE_ID 1 + P_PSQL_COUNTER_ID 1 + P_RECSOURCE_CURSOR_ID 1 + P_RECSOURCE_OPEN_COUNTER 0 + P_RECSOURCE_FETCH_COUNTER 1 P_SESSIONS_PROFILE_ID 1 P_PSQL_COUNTER_ID 1 @@ -80,12 +92,24 @@ def test_1(act: Action, capsys): P_RECSOURCE_OPEN_COUNTER 0 P_RECSOURCE_FETCH_COUNTER 1 + P_SESSIONS_PROFILE_ID 1 + P_PSQL_COUNTER_ID 1 + P_RECSOURCE_CURSOR_ID 2 + P_RECSOURCE_OPEN_COUNTER 1 + P_RECSOURCE_FETCH_COUNTER 1 + P_SESSIONS_PROFILE_ID 1 P_PSQL_COUNTER_ID 1 P_RECSOURCE_CURSOR_ID 2 P_RECSOURCE_OPEN_COUNTER 1 P_RECSOURCE_FETCH_COUNTER 2 + P_SESSIONS_PROFILE_ID 1 + P_PSQL_COUNTER_ID 1 + P_RECSOURCE_CURSOR_ID 2 + P_RECSOURCE_OPEN_COUNTER 1 + P_RECSOURCE_FETCH_COUNTER 1 + P_SESSIONS_PROFILE_ID 1 P_PSQL_COUNTER_ID 1 P_RECSOURCE_CURSOR_ID 2 @@ -103,8 +127,8 @@ def test_1(act: Action, capsys): P_RECSOURCE_CURSOR_ID 2 P_RECSOURCE_OPEN_COUNTER 1 P_RECSOURCE_FETCH_COUNTER 1 - - Records affected: 6 + + Records affected: 10 """ act.isql(input = test_sql, combine_output = True) assert act.clean_stdout == act.clean_expected_stdout