Skip to content

Commit f5176ef

Browse files
committed
Use test sqlite db file in tempdir to avoid package readonly errors. Fixes #173
1 parent 4f3fab2 commit f5176ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ using Test, Dates, Random, WeakRefStrings, Tables, DataFrames
44
import Base: +, ==
55

66
dbfile = joinpath(dirname(pathof(SQLite)),"../test/Chinook_Sqlite.sqlite")
7-
dbfile2 = joinpath(dirname(pathof(SQLite)),"../test/test.sqlite")
7+
dbfile2 = joinpath(tempdir(), "test.sqlite")
88
cp(dbfile, dbfile2; force=true)
9+
chmod(dbfile2, 0o777)
910
db = SQLite.DB(dbfile2)
1011

1112
# regular SQLite tests

0 commit comments

Comments
 (0)