Retrigger unittest
parent
e1247e81e1
commit
01921ee81f
|
@ -347,13 +347,14 @@ TEST_F(utglTF2ImportExport, importglTF2PrimitiveModeTrianglesFan) {
|
|||
}
|
||||
}
|
||||
|
||||
std::vector<char> ReadFile(const char* name)
|
||||
{
|
||||
std::vector<char> ReadFile(const char* name) {
|
||||
std::vector<char> ret;
|
||||
|
||||
FILE* p = ::fopen(name, "r");
|
||||
if (p)
|
||||
{
|
||||
if (nullptr == p) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
::fseek(p, 0, SEEK_END);
|
||||
const auto size = ::ftell(p);
|
||||
::fseek(p, 0, SEEK_SET);
|
||||
|
@ -361,7 +362,7 @@ std::vector<char> ReadFile(const char* name)
|
|||
ret.resize(size);
|
||||
::fread(&ret[0], 1, size, p);
|
||||
::fclose(p);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue