Skip to content

Commit

Permalink
fix on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbindar committed Apr 1, 2024
1 parent 82edb78 commit 1d2dac9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/src/unit-vfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,11 @@ TEMPLATE_LIST_TEST_CASE("VFS: File I/O", "[vfs][uri][file_io]", AllBackends) {
uint64_t nbytes = 0;
URI non_existent = URI(path.to_string() + "non_existent");
if (path.is_file()) {
#ifdef _WIN32
CHECK(!vfs.file_size(non_existent, &nbytes).ok());
#else
CHECK_THROWS(vfs.file_size(non_existent, &nbytes));
#endif
} else {
CHECK(!vfs.file_size(non_existent, &nbytes).ok());
}
Expand Down

0 comments on commit 1d2dac9

Please sign in to comment.