Skip to content

Commit 5092a75

Browse files
authored
Merge pull request #613 from sparklemotion/flavorjones-skip-file-url-tests-with-syslibs
test: skip database URI tests when using system libraries
2 parents 555738d + f8789f6 commit 5092a75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_database_uri.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module SQLite3
66
class TestDatabaseURI < SQLite3::TestCase
77
def test_open_absolute_file_uri
88
skip("windows uri paths are hard") if windows?
9-
skip("sqlcipher may not allow URIs") if SQLite3.sqlcipher?
9+
skip("system libraries may not allow URIs") unless SQLite3::SQLITE_PACKAGED_LIBRARIES
1010

1111
Tempfile.open "test.db" do |file|
1212
db = SQLite3::Database.new("file:#{file.path}")
@@ -17,7 +17,7 @@ def test_open_absolute_file_uri
1717

1818
def test_open_relative_file_uri
1919
skip("windows uri paths are hard") if windows?
20-
skip("sqlcipher may not allow URIs") if SQLite3.sqlcipher?
20+
skip("system libraries may not allow URIs") unless SQLite3::SQLITE_PACKAGED_LIBRARIES
2121

2222
Dir.mktmpdir do |dir|
2323
Dir.chdir dir do
@@ -31,7 +31,7 @@ def test_open_relative_file_uri
3131

3232
def test_open_file_uri_readonly
3333
skip("windows uri paths are hard") if windows?
34-
skip("sqlcipher may not allow URIs") if SQLite3.sqlcipher?
34+
skip("system libraries may not allow URIs") unless SQLite3::SQLITE_PACKAGED_LIBRARIES
3535

3636
Tempfile.open "test.db" do |file|
3737
db = SQLite3::Database.new("file:#{file.path}?mode=ro")

0 commit comments

Comments
 (0)