Skip to content

Commit e855b5e

Browse files
committed
skip test with ruby-asan
1 parent 403c38a commit e855b5e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

test/duckdb_test/config_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def test_set_config_with_exception
5353
end
5454

5555
def test_set_invalid_option
56+
skip 'test with ASAN' if ENV['ASAN_TEST'] == '1'
5657
config = DuckDB::Config.new
5758
assert_instance_of(DuckDB::Config, config.set_config('aaa_invalid_option', 'READ_ONLY'))
5859
assert_raises(DuckDB::Error) do

test/duckdb_test/connection_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ def test_async_query_with_valid_hash_params
7979
end
8080

8181
def test_async_query_with_invalid_params
82+
skip 'test with ASAN' if ENV['ASAN_TEST'] == '1'
8283
assert_raises(DuckDB::Error) { @con.async_query('foo', 'bar') }
8384

8485
assert_raises(ArgumentError) { @con.async_query }

test/duckdb_test/prepared_statement_test.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ def test_s_new
103103
assert_raises(ArgumentError) { DuckDB::PreparedStatement.new }
104104
assert_raises(TypeError) { DuckDB::PreparedStatement.new(con, 1) }
105105
assert_raises(TypeError) { DuckDB::PreparedStatement.new(1, 1) }
106+
end
107+
108+
def test_s_new_with_duckdb_error
109+
skip 'test with ASAN' if ENV['ASAN_TEST'] == '1'
110+
con = PreparedStatementTest.con
106111
assert_raises(DuckDB::Error) { DuckDB::PreparedStatement.new(con, 'SELECT * FROM') }
107112
end
108113

@@ -162,6 +167,7 @@ def test_param_type
162167
end
163168

164169
def test_clear_bindings
170+
skip 'test with ASAN' if ENV['ASAN_TEST'] == '1'
165171
con = PreparedStatementTest.con
166172
stmt = DuckDB::PreparedStatement.new(con, 'SELECT * FROM a WHERE id = $1')
167173
stmt.bind(1, 1)

0 commit comments

Comments
 (0)