Skip to content

Commit

Permalink
Fixed build on Linux of convert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoturri1966 committed Aug 2, 2023
1 parent 1fce0aa commit e64445e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/convert/convert_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@ void binary_to_ascii(const std::string& src_filename, const std::string& dst_fil
void ascii_to_binary(const std::string& src_filename, const std::string& dst_filename, const BinarizerConfig& config)
{
// Open source file
FILE* src_file;
errno_t err = fopen_s(&src_file, src_filename.c_str(), "rb");
REQUIRE(err == 0);
FILE* src_file = fopen(src_filename.c_str(), "rb");
REQUIRE(src_file != nullptr);
ScopedFile ab_scoped_src_file(src_file);

// Open destination file
FILE* dst_file;
err = fopen_s(&dst_file, dst_filename.c_str(), "wb");
REQUIRE(err == 0);
FILE* dst_file = fopen(dst_filename.c_str(), "wb");
REQUIRE(dst_file != nullptr);
ScopedFile ab_scoped_dst_file(dst_file);

// Perform conversion
Expand Down

0 comments on commit e64445e

Please sign in to comment.