cleanup off writer output file

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1327 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Matthias Möller
2015-08-21 12:11:16 +00:00
parent 1d28bd15db
commit ec436cd398

View File

@@ -1,5 +1,6 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <Unittests/unittests_common.hh> #include <Unittests/unittests_common.hh>
#include <cstdio>
namespace { namespace {
@@ -80,6 +81,7 @@ TEST_F(OpenMeshReadWriteOFF, WriteAndReadVertexColorsToAndFromOFFFile) {
OpenMesh::IO::Options opt(OpenMesh::IO::Options::VertexColor); OpenMesh::IO::Options opt(OpenMesh::IO::Options::VertexColor);
OpenMesh::IO::write_mesh(mesh_, "temp.off", opt); OpenMesh::IO::write_mesh(mesh_, "temp.off", opt);
OpenMesh::IO::read_mesh(mesh_, "temp.off", opt); OpenMesh::IO::read_mesh(mesh_, "temp.off", opt);
remove("temp.off");
// check if vertices still have the same color // check if vertices still have the same color
count = 0; count = 0;