I’ve created a bunch of tests for the CDI (netcdf) reader, and I would like to also add tests with broken files / … where paraview is supposed to throw errors, but not crash. Now, when I build a test that causes an error message (via vtkErrorMacro), the output contains ERR and the test fails because of that (vtkSMTestDriver: Error string found in output, vtkSMTestDriver returning 1).
Can I anchor the test in the CMakeLists.txt in a way that it can print whatever it wants, but it needs to exit cleanly with exit status 0?
Here’s my current CMakeLists.txt file using paraview_add_client_tests
:
https://gitlab.kitware.com/florian.ziemen/paraview/-/blob/merge-with-master/Plugins/CDIReader/Testing/XML/CMakeLists.txt