mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Introduce proper error handling for file streams
This commit is contained in:
parent
c38e0d05bf
commit
39fd9b93c3
23 changed files with 235 additions and 149 deletions
|
@ -80,13 +80,13 @@ void TestBan::testCreate()
|
|||
BanManager bm(m_testbm);
|
||||
}
|
||||
|
||||
UASSERT(std::ifstream(m_testbm, std::ios::binary).is_open());
|
||||
UASSERT(fs::IsFile(m_testbm));
|
||||
|
||||
// test manual save
|
||||
{
|
||||
BanManager bm(m_testbm2);
|
||||
bm.save();
|
||||
UASSERT(std::ifstream(m_testbm2, std::ios::binary).is_open());
|
||||
UASSERT(fs::IsFile(m_testbm2));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue