mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-13 14:00:27 +01:00
Test case when file is nullptr
This commit is contained in:
parent
5e2d9d947e
commit
30d5748e0c
|
@ -35,3 +35,13 @@ TEST_CASE("minimal triangle has correct vertices") {
|
|||
device->drop();
|
||||
}
|
||||
|
||||
TEST_CASE("mesh loader returns nullptr when given null file pointer") {
|
||||
irr::IrrlichtDevice* device { irr::createDevice(irr::video::EDT_NULL) };
|
||||
irr::scene::ISceneManager* smgr { device->getSceneManager() };
|
||||
auto* mesh { smgr->getMesh(nullptr) };
|
||||
|
||||
CHECK(mesh == nullptr);
|
||||
|
||||
device->drop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user