summaryrefslogtreecommitdiffstats
path: root/test/unit/utColladaExport.cpp
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@qt.io>2025-06-10 12:58:18 +0200
committerAndy Nichols <andy.nichols@qt.io>2025-06-10 12:59:03 +0200
commit488a2f7af2920295ada886f113a0d563dab79b8d (patch)
tree60618a0947d45081caf6c5038cee9706e4af4ae0 /test/unit/utColladaExport.cpp
parent647f94648c0ae24b9c6684383a9dbbc0e2fc23b7 (diff)
parentfb375dd8c0a032106a2122815fb18dffe0283721 (diff)
Merge tag 'v6.0.2' into qt6_assimpqt6_assimp
Diffstat (limited to 'test/unit/utColladaExport.cpp')
-rw-r--r--test/unit/utColladaExport.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/unit/utColladaExport.cpp b/test/unit/utColladaExport.cpp
index e0a62b338..d7f450b7b 100644
--- a/test/unit/utColladaExport.cpp
+++ b/test/unit/utColladaExport.cpp
@@ -3,7 +3,7 @@
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
-Copyright (c) 2006-2024, assimp team
+Copyright (c) 2006-2025, assimp team
All rights reserved.
@@ -79,7 +79,7 @@ TEST_F(utColladaExport, testExportCamera) {
EXPECT_EQ(AI_SUCCESS, ex->Export(pTest, "collada", file));
const unsigned int origNumCams(pTest->mNumCameras);
- //std::vector<float> origFOV;
+
std::unique_ptr<float[]> origFOV(new float[origNumCams]);
std::unique_ptr<float[]> orifClipPlaneNear(new float[origNumCams]);
std::unique_ptr<float[]> orifClipPlaneFar(new float[origNumCams]);
@@ -114,6 +114,9 @@ TEST_F(utColladaExport, testExportCamera) {
EXPECT_FLOAT_EQ(pos[i].y, read->mPosition.y);
EXPECT_FLOAT_EQ(pos[i].z, read->mPosition.z);
}
+
+ // Cleanup, delete the exported file
+ EXPECT_EQ(0, std::remove(file));
}
// ------------------------------------------------------------------------------------------------
@@ -220,6 +223,9 @@ TEST_F(utColladaExport, testExportLight) {
EXPECT_NEAR(orig->mAngleInnerCone, read->mAngleInnerCone, 0.001);
EXPECT_NEAR(orig->mAngleOuterCone, read->mAngleOuterCone, 0.001);
}
+
+ // Cleanup, delete the exported file
+ EXPECT_EQ(0, std::remove(file));
}
#endif // ASSIMP_BUILD_NO_EXPORT