Skip to content

test: skip database URI tests when using system libraries #613

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/test_database_uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module SQLite3
class TestDatabaseURI < SQLite3::TestCase
def test_open_absolute_file_uri
skip("windows uri paths are hard") if windows?
skip("sqlcipher may not allow URIs") if SQLite3.sqlcipher?
skip("system libraries may not allow URIs") unless SQLite3::SQLITE_PACKAGED_LIBRARIES

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

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

Dir.mktmpdir do |dir|
Dir.chdir dir do
Expand All @@ -31,7 +31,7 @@ def test_open_relative_file_uri

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

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