6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-02-02 02:40:42 +01:00

Added/Updated tests\bugs\gh_7927_test.py: Checked on 6.0.0.186 (intermediate build for commit 305c40a05b1d64c14dbf5f25f36c42c44c6392d9) - all OK.

This commit is contained in:
pavel-zotov 2023-12-20 20:56:10 +03:00
parent 1efa200eb6
commit 8b14599560

View File

@ -0,0 +1,54 @@
#coding:utf-8
"""
ID: issue-7927
ISSUE: 7927
TITLE: Some default values is set incorrectly for SC/CS architectures
DESCRIPTION:
NOTES:
Confirmed bug on 6.0.0.180.
Checked on intermediate builds:
6.0.0.186, commit 305c40a05b1d64c14dbf5f25f36c42c44c6392d9
4.0.5.3042, commit f7b090043e8886ab6286f8d626dd1684dc09e3b8
NB: execution is currently SKIPPED for FB 5.x. Waiting for backport.
"""
import pytest
from firebird.qa import *
db = db_factory()
act = python_act('db')
test_script = """
set list on;
select rdb$config_name, rdb$config_default
from rdb$config where rdb$config_name in ('TempCacheLimit', 'DefaultDbCachePages', 'GCPolicy')
order by rdb$config_name
;
"""
expected_stdout = """
RDB$CONFIG_NAME DefaultDbCachePages
RDB$CONFIG_DEFAULT 256
RDB$CONFIG_NAME GCPolicy
RDB$CONFIG_DEFAULT cooperative
RDB$CONFIG_NAME TempCacheLimit
RDB$CONFIG_DEFAULT 8388608
"""
@pytest.mark.version('>=4.0.5')
def test_1(act: Action):
if act.is_version('>=5.0,<6.0'):
# TEMPORARY, TO BE DELETED LATER:
pytest.skip('Waiting for backport from FB 6.x')
if act.vars['server-arch'] != 'Classic':
pytest.skip("No need to run on Super or SuperClassic.")
act.expected_stdout = expected_stdout
act.isql(switches=['-q'], input = test_script, combine_output = True)
assert act.clean_stdout == act.clean_expected_stdout