Commit 143c31f2 authored by Bill Lorensen's avatar Bill Lorensen Committed by Kitware Robot
Browse files

Merge topic 'TestXMLCInterface'

f2a73837

 ENH: Restore TestXMLCInterface

Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Tested-by: Andrew Maclean's avatarAndrew Maclean <andrew.amaclean@gmail.com>
Merge-request: !1541
parents c16f78d7 f2a73837
Pipeline #17157 skipped
......@@ -29,3 +29,7 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
add_executable(TestXMLCInterface MACOSX_BUNDLE TestXMLCInterface.c)
target_link_libraries(TestXMLCInterface LINK_PRIVATE vtkIOXML)
add_test(NAME TestXMLCInterface COMMAND TestXMLCInterface)
......@@ -21,6 +21,7 @@
int main()
{
int i,j;
{
vtkXMLWriterC* writer = vtkXMLWriterC_New();
const char filename[] = "cube.vtu";
float points[3*NPOINTS] = {0, 0, 0,
......@@ -62,6 +63,6 @@ int main()
}
vtkXMLWriterC_Stop(writer);
vtkXMLWriterC_Delete(writer);
}
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment