8000 Added/Updated tests\bugs\core_3450_test.py: Separated expected output… · FirebirdSQL/firebird-qa@61fef55 · GitHub
[go: up one dir, main page]

Skip to content

Commit 61fef55

Browse files
committed
Added/Updated tests\bugs\core_3450_test.py: Separated expected output for FB major versions prior/since 6.x. Checked on 6.0.0.876; 5.0.3.1668; 4.0.6.3214; 3.0.13.33813.
1 parent 3808362 commit 61fef55

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

tests/bugs/core_3450_test.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,11 @@
88
JIRA: CORE-3450
99
FBTEST: bugs.core_3450
1010
NOTES:
11-
[30.11.2016] pzotov
12-
It seems that we have regression in current 4.0 snapshots (elapsed time more than 10x comparing with 2.5).
13-
Also, 4.0 has different plan comparing with 3.0.
14-
After discuss with dimitr it was decided to commit this test into fbt-repo in order to have constant
15-
reminder about this issue.
16-
Currently this test should FAIL on 4.0.
17-
18-
[22.09.2022] pzotov
19-
Removed SKIP notation because test works fine on FB 4.0.1
20-
Checked on 3.0.8.33535, 4.0.1.2692, 5.0.0.736
11+
[27.06.2025] pzotov
12+
Separated expected output for FB major versions prior/since 6.x.
13+
No substitutions are used to suppress schema and quotes. Discussed with dimitr, 24.06.2025 12:39.
14+
15+
Checked on 6.0.0.876; 5.0.3.1668; 4.0.6.3214; 3.0.13.33813.
2116
"""
2217

2318
import pytest
@@ -101,13 +96,16 @@
10196

10297
act = isql_act('db', test_script)
10398

104-
expected_stdout = """
99+
expected_stdout_5x = """
105100
PLAN JOIN (JOIN (P1 NATURAL, T1 INDEX (TEST_1_F2)), T2 INDEX (TEST_2_F1), T3 INDEX (TEST_3_F1))
106101
"""
107102

103+
expected_stdout_6x = """
104+
PLAN JOIN (JOIN ("P1" NATURAL, "T1" INDEX ("PUBLIC"."TEST_1_F2")), "T2" INDEX ("PUBLIC"."TEST_2_F1"), "T3" INDEX ("PUBLIC"."TEST_3_F1"))
105+
"""
106+
108107
@pytest.mark.version('>=3.0')
109108
def test_1(act: Action):
110-
act.expected_stdout = expected_stdout
111-
act.execute()
109+
act.expected_stdout = expected_stdout_5x if act.is_version('<6') else expected_stdout_6x
110+
act.execute(combine_output = True)
112111
assert act.clean_stdout == act.clean_expected_stdout
113-

0 commit comments

Comments
 (0)
0