diff --git a/tests/sqlite.lua b/tests/sqlite.lua index 2e511cd..54d8e16 100644 --- a/tests/sqlite.lua +++ b/tests/sqlite.lua @@ -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) diff --git a/tests/sqlite3.lua b/tests/sqlite3.lua index 3370d3e..fb881b2 100644 --- a/tests/sqlite3.lua +++ b/tests/sqlite3.lua @@ -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) diff --git a/tests/test.lua b/tests/test.lua index 00bcb1f..da6a8fd 100644 --- a/tests/test.lua +++ b/tests/test.lua @@ -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