mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 08:15:35 +00:00
fix unhandled return value of fread in TConfig::TConfig unit test
This commit is contained in:
parent
dbb01998ea
commit
1a9872db00
@ -44,7 +44,10 @@ TEST_CASE("TConfig::TConfig") {
|
||||
{
|
||||
buf.resize(fs::file_size(CfgFile));
|
||||
auto fp = std::fopen(CfgFile.c_str(), "r");
|
||||
std::fread(buf.data(), 1, buf.size(), fp);
|
||||
auto res = std::fread(buf.data(), 1, buf.size(), fp);
|
||||
if (res != buf.size()) {
|
||||
// IGNORE?
|
||||
}
|
||||
std::fclose(fp);
|
||||
}
|
||||
INFO("file contents are:", buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user