TestDataEncoder hangs, race condition
TestDataEncoder can hang because of a race condition:
ctest -R VTK::WebCoreCxx-TestDataEncoder --repeat-until-fail 100
[10..30 execution]
130: Test command: /home/glow/work/vtk/vtk_build/bin/vtkWebCoreCxxTests "TestDataEncoder" "-D" "/home/glow/work/vtk/vtk_build/ExternalData/Testing" "-T" "/home/glow/work/vtk/vtk_build/Testing/Temporary"
130: Test timeout computed to be: 1500
130: ( 0.003s) [main thread ] TestDataEncoder.cxx:41 INFO| { TestCreate
This happens in the following code:
bool TestCreate()
{
vtkLogScopeFunction(INFO);
//--------------------------------------------------------------
// Create a bunch of instances and ensure it doesn't cause issues
// #18344
for (int cc = 0; cc < 100; cc++)
{
vtkNew<vtkDataEncoder> encoder;
}
This is most likely a genuine issue in vtkDataEncoder
.
Edited by Mathieu Westphal (Kitware)