Skip to content

Commit

Permalink
Fix parallel test execution on Linux
Browse files Browse the repository at this point in the history
Apparently the Qt backend does not like being used in tests that are run
in multiple threads, so force the fluent style instead.
  • Loading branch information
hunger committed Jan 3, 2022
1 parent d678f4b commit ee3d51c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/driver/interpreter/interpreter.rs
Expand Up @@ -14,6 +14,7 @@ pub fn test(testcase: &test_driver_lib::TestCase) -> Result<(), Box<dyn Error>>
.collect::<Vec<_>>();
let mut compiler = sixtyfps_interpreter::ComponentCompiler::default();
compiler.set_include_paths(include_paths);
compiler.set_style(String::from("fluent")); // force to fluent style as Qt does not like multi-threaded test execution

let component =
spin_on::spin_on(compiler.build_from_source(source, testcase.absolute_path.clone()));
Expand Down

0 comments on commit ee3d51c

Please sign in to comment.