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

removed dependency on separate .fbk file: got script which forces crash on FB 2.5.0 without it, but one need to re-connect. Put this inside test code.

This commit is contained in:
zotov 2022-03-23 20:11:04 +03:00
parent 56634f41e9
commit 418ef58677

View File

@ -12,17 +12,24 @@ FBTEST: bugs.core_3557
import pytest import pytest
from firebird.qa import * from firebird.qa import *
db = db_factory(from_backup='core3557.fbk') db = db_factory()
test_script = """ test_script = """
create table test (id int primary key);
commit;
-- RECONNECT IS MANDATORY HERE IN ORDER TO GET CRASH:
-- ##################################################
connect '$(DSN)' user 'SYSDBA' password 'masterkey';
-- Confirmed for 2.5.0 only: server crashes on running the following EB. 26.02.2015 -- Confirmed for 2.5.0 only: server crashes on running the following EB. 26.02.2015
-- All subsequent releases should produce no stdout & stderr. -- All subsequent releases should produce no stdout & stderr.
set term ^; set term ^;
execute block as execute block as
begin begin
execute statement 'drop table t'; execute statement 'drop table test';
in autonomous transaction do in autonomous transaction do
execute statement ('insert into t values (1)'); execute statement ('insert into test values (1)');
end ^ end ^
""" """