diff --git a/tests/acceptance/custom.supp b/tests/acceptance/custom.supp new file mode 100644 index 0000000..faf8d91 --- /dev/null +++ b/tests/acceptance/custom.supp @@ -0,0 +1,13 @@ +{ + avoid_glibc_bug_do_lookup + Memcheck:Addr8 + fun:do_lookup_x + obj:* + fun:_dl_lookup_symbol_x +} +{ + avoid_glibc_bug_check_match + Memcheck:Addr8 + fun:check_match.12149 +} + diff --git a/tests/acceptance/flexnbd.rb b/tests/acceptance/flexnbd.rb index e66ae75..d018144 100644 --- a/tests/acceptance/flexnbd.rb +++ b/tests/acceptance/flexnbd.rb @@ -21,7 +21,7 @@ class ValgrindExecutor attr_reader :pid def run( cmd ) - @pid = fork do exec "valgrind --track-origins=yes #{cmd}" end + @pid = fork do exec "valgrind --track-origins=yes --suppressions=custom.supp #{cmd}" end end end # class ValgrindExecutor @@ -131,7 +131,7 @@ class ValgrindKillingExecutor def run( cmd ) @io_r, io_w = IO.pipe - @pid = fork do exec( "valgrind --xml=yes --xml-fd=#{io_w.fileno} " + cmd ) end + @pid = fork do exec( "valgrind --suppressions=custom.supp --xml=yes --xml-fd=#{io_w.fileno} " + cmd ) end launch_watch_thread( @pid, @io_r ) @pid end @@ -521,3 +521,4 @@ module FlexNBD end end +