Add finalization test.

master
Tomás Guisasola 2020-09-08 11:38:29 -03:00
parent 53b3b13583
commit a6ad06d71b
3 changed files with 15 additions and 0 deletions

View File

@ -15,5 +15,9 @@ function checkUnknownDatabase(ENV)
-- skip this test
end
function finalization ()
os.execute ("rm -rf "..datasource)
end
table.insert (CONN_METHODS, "escape")
table.insert (EXTENSIONS, escape)

View File

@ -17,5 +17,9 @@ function checkUnknownDatabase(ENV)
-- skip this test
end
function finalization ()
os.execute ("rm -rf "..datasource)
end
table.insert (CONN_METHODS, "escape")
table.insert (EXTENSIONS, escape)

View File

@ -563,6 +563,12 @@ function close_conn ()
assert (true, ENV:close())
end
---------------------------------------------------------------------
---------------------------------------------------------------------
function finalization ()
-- nothing to do
end
---------------------------------------------------------------------
-- Testing Extensions
---------------------------------------------------------------------
@ -659,6 +665,7 @@ tests = {
{ "close objects", check_close },
{ "drop table", drop_table },
{ "close connection", close_conn },
{ "finalization", finalization },
}
if string.find(_VERSION, " 5.0") then