Skip to content

Commit 7e750ac

Browse files
committed
test: skip URI tests for sqlcipher
since the compile-time option may not be on
1 parent fe026b2 commit 7e750ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_database_uri.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +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?
910

1011
Tempfile.open "test.db" do |file|
1112
db = SQLite3::Database.new("file:#{file.path}")
@@ -16,6 +17,7 @@ def test_open_absolute_file_uri
1617

1718
def test_open_relative_file_uri
1819
skip("windows uri paths are hard") if windows?
20+
skip("sqlcipher may not allow URIs") if SQLite3.sqlcipher?
1921

2022
Dir.mktmpdir do |dir|
2123
Dir.chdir dir do
@@ -29,6 +31,7 @@ def test_open_relative_file_uri
2931

3032
def test_open_file_uri_readonly
3133
skip("windows uri paths are hard") if windows?
34+
skip("sqlcipher may not allow URIs") if SQLite3.sqlcipher?
3235

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

0 commit comments

Comments
 (0)