From f8789f66d1b78d11059358a4d67284d04d84d1af Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Thu, 30 Jan 2025 10:03:40 -0500 Subject: [PATCH] test: skip database URI tests when using system libraries See discussion at #612 where it's revealed that Fedora does not enable this feature in its system library. --- test/test_database_uri.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_database_uri.rb b/test/test_database_uri.rb index 72beda99..cce25bec 100644 --- a/test/test_database_uri.rb +++ b/test/test_database_uri.rb @@ -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}") @@ -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 @@ -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")