v test v: cleanup more temporary files

pull/2733/head
Delyan Angelov 2019-11-11 17:45:11 +02:00 committed by Alexander Medvednikov
parent 0ab09a57f7
commit cc81e9adfa
2 changed files with 7 additions and 2 deletions

View File

@ -193,5 +193,7 @@ fn cleanup_leftovers(){
os.rm('ex/ex1.txt') os.rm('ex/ex1.txt')
os.rm('ex') os.rm('ex')
os.rm('ex2/ex2.txt') os.rm('ex2/ex2.txt')
os.rm('ex2') os.rm('ex2')
os.rm('ex1.txt')
os.rm('ex2.txt')
} }

View File

@ -1,7 +1,9 @@
import os
import sqlite import sqlite
fn test_sqlite() { fn test_sqlite() {
db := sqlite.connect('users.db') db_file := 'users.db'
db := sqlite.connect(db_file)
db.exec("drop table if exists users") db.exec("drop table if exists users")
db.exec("create table users (id integer primary key, name text default '');") db.exec("create table users (id integer primary key, name text default '');")
@ -20,4 +22,5 @@ fn test_sqlite() {
for row in users { for row in users {
println(row.vals) println(row.vals)
} }
os.rm(db_file)
} }