mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 21:43:06 +01:00
Added/Updated tests\bugs\core_4319_test.py: Removed assert: requirement about empty trace must be removed because 'FAILED ATTACH_DATABASE' presents in the trace for recent FB 4.x and 5.x
This commit is contained in:
parent
8418aa1c97
commit
e02e703539
@ -66,18 +66,20 @@ def test_1(act: Action, capsys):
|
||||
with act.trace(config = trace_conf, encoding = locale.getpreferredencoding(), encoding_errors='utf8'):
|
||||
act.isql(switches = ['-q'], input = sql_txt, connect_db=False, credentials = False, combine_output = True, io_enc = locale.getpreferredencoding())
|
||||
|
||||
possible_crash_pattern = re.compile('error\s+(reading|writing)\s+data', re.IGNORECASE)
|
||||
possible_crash_pattern = re.compile(r'error\s+(reading|writing)\s+data\s+(from|to)(\s+the)?\s+connection', re.IGNORECASE)
|
||||
assert 'SQLSTATE = 08001' in act.stdout and NO_SUCH_ALIAS in act.stdout and not possible_crash_pattern.search(act.stdout)
|
||||
act.reset()
|
||||
|
||||
assert len(act.trace_log) == 0
|
||||
# 04.03.2023. Trace in recent FB 4.x and 5.x contains FAILED ATTACH_DATABASE when we attempt to make connection to non-existnng alias.
|
||||
# Because of that, requirement about empty trace must be removed from here:
|
||||
# >>> DISABLED 04.03.2023 >>> assert len(act.trace_log) == 0
|
||||
|
||||
# Get Firebird log after test
|
||||
log_after = act.get_firebird_log()
|
||||
|
||||
problematic_patterns = [re.compile('access\s+violation',re.IGNORECASE),
|
||||
re.compile('terminate\\S+ abnormally',re.IGNORECASE),
|
||||
re.compile('error\s+(reading|writing)\s+data',re.IGNORECASE)
|
||||
problematic_patterns = [re.compile( r'access\s+violation',re.IGNORECASE),
|
||||
re.compile( r'terminate\S+ abnormally',re.IGNORECASE),
|
||||
re.compile( r'error\s+(reading|writing)\s+data',re.IGNORECASE)
|
||||
]
|
||||
for line in unified_diff(log_before, log_after):
|
||||
# ::: NB :::
|
||||
|
Loading…
Reference in New Issue
Block a user