mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-18 00:08:20 +01:00
Test case when file is nullptr
This commit is contained in:
parent
336aa204fb
commit
3cb592369d
@ -35,3 +35,13 @@ TEST_CASE("minimal triangle has correct vertices") {
|
|||||||
device->drop();
|
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