Run wasm tests without requiring threads
- this fixes flakiness in couple unit tests due to a spurious error that occurred when creating extra threads https://github.com/emscripten-core/emscripten/issues/12223 by completely disabling threads for unit tests. - sync XHR in `vtkPreloadDataFileIntoMemory` is apparently possible when the mimetype is `text/plain` - https://stackoverflow.com/a/63920556/7102809 - Now, `vtkEmscripten.cmake` does not enable threads by default when `VTK_BUILD_TESTING` is `WANT` or `ON`. - Make `VTK_USE_PTHREADS` honor the value of `VTK_WEBASSEMBLY_THREADS`. This correctly configures code in VTK which assumes pthreads exist. - Remove pthread proxying and offscreen canvas link flags from unit tests as they're no longer required.
Showing
- CMake/vtkEmscripten.cmake 0 additions, 10 deletionsCMake/vtkEmscripten.cmake
- Common/Core/CMakeLists.txt 5 additions, 0 deletionsCommon/Core/CMakeLists.txt
- Imaging/Core/Testing/Cxx/CMakeLists.txt 2 additions, 11 deletionsImaging/Core/Testing/Cxx/CMakeLists.txt
- Rendering/Core/Testing/Cxx/CMakeLists.txt 3 additions, 12 deletionsRendering/Core/Testing/Cxx/CMakeLists.txt
- Rendering/OpenGL2/Testing/Cxx/CMakeLists.txt 2 additions, 11 deletionsRendering/OpenGL2/Testing/Cxx/CMakeLists.txt
- Rendering/WebGPU/Testing/Cxx/CMakeLists.txt 2 additions, 15 deletionsRendering/WebGPU/Testing/Cxx/CMakeLists.txt
- Testing/Core/vtkEmscriptenTestUtilities.js 2 additions, 2 deletionsTesting/Core/vtkEmscriptenTestUtilities.js
Loading
Please register or sign in to comment