Skip to content

Commit

Permalink
fix: enable multithread test, for tsan
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Oct 3, 2024
1 parent 5cd2d35 commit 8d22808
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ example_sources = [
### 'test_this': boolean, whether or not to run this example as a test
### 'test_args': list of arguments for this example, used for testing
### 'first': boolean, whether this test should be run before any others (default = false)
### 'parallel': sets 'is_parallel' (default = true)
### 'build_this': whether or not to build this (default = true)
### 'deps': additional dependencies (default = [])
### },
{ 'sources': [ 'bankRowList.cc' ], 'test_this': test_external, 'test_args': [ external_test_file ] },
{ 'sources': [ 'builder.cc' ], 'test_this': false, 'test_args': [] },
{ 'sources': [ 'dataframe.cc' ], 'test_this': false, 'test_args': [] },
{ 'sources': [ 'histograms.cc' ], 'test_this': test_external, 'test_args': [ external_test_file ] },
{ 'sources': [ 'multithread.cc' ], 'test_this': false, 'test_args': [], 'deps': [ thread_dep ], 'build_this': thread_dep.found() },
{ 'sources': [ 'multithread.cc' ], 'test_this': test_external, 'test_args': [ external_test_file ], 'deps': [ thread_dep ], 'build_this': thread_dep.found(), 'parallel': false },
{ 'sources': [ 'readEvents.cc' ], 'test_this': false, 'test_args': [] },
{ 'sources': [ 'readFile.cc' ], 'test_this': true, 'test_args': [ 'example_output.hipo' ] },
{ 'sources': [ 'readFileDebug.cc' ], 'test_this': false, 'test_args': [] },
Expand Down Expand Up @@ -55,7 +56,7 @@ foreach ex : example_sources
suite: [ 'example' ],
args: ex.get('test_args', []),
priority: ex.get('first', false) ? 1 : 0, # make sure 'first' tests start before any other
is_parallel: ex.get('first', false) ? false : true, # make sure 'first' tests finish before any other
is_parallel: ex.get('first', false) ? false : ex.get('parallel', true),
timeout: 120,
)
endif
Expand Down

0 comments on commit 8d22808

Please sign in to comment.