Add finalization test.
This commit is contained in:
parent
53b3b13583
commit
a6ad06d71b
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user