6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 21:43:06 +01:00
firebird-qa/tests/bugs/core_2268_test.py

31 lines
684 B
Python
Raw Normal View History

2021-04-26 20:07:00 +02:00
#coding:utf-8
2022-01-21 18:49:26 +01:00
"""
ID: issue-2694
ISSUE: 2694
TITLE: GFIX causes BUGCHECK errors with non valid transaction numbers
DESCRIPTION:
JIRA: CORE-2268
FBTEST: bugs.core_2268
2022-01-21 18:49:26 +01:00
"""
2021-04-26 20:07:00 +02:00
2022-01-21 18:49:26 +01:00
import pytest
from firebird.qa import *
2021-04-26 20:07:00 +02:00
2022-01-21 18:49:26 +01:00
db = db_factory()
2021-11-15 19:01:46 +01:00
2022-01-21 18:49:26 +01:00
act = python_act('db', substitutions=[('^failed to reconnect to a transaction in database.*', '')])
2021-04-26 20:07:00 +02:00
2022-01-21 18:49:26 +01:00
expected_stderr = """transaction is not in limbo
2021-04-26 20:07:00 +02:00
-transaction 1000000 is in an ill-defined state
"""
@pytest.mark.version('>=2.5')
2022-01-21 18:49:26 +01:00
def test_1(act: Action):
act.expected_stderr = expected_stderr
act.gfix(switches=['-commit', '1000000', act.db.dsn])
assert act.clean_stderr == act.clean_expected_stderr
2021-04-26 20:07:00 +02:00