Skip to content

Commit

Permalink
filter
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Dec 1, 2023
1 parent 137b19f commit c2c9af0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/coro_io/tests/test_corofile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ void create_files(const std::vector<std::string>& files, size_t file_size) {
}
}

#if defined(__GNUC__) and not defined(YLT_ENABLE_FILE_IO_URINGs)
#ifndef YLT_ENABLE_FILE_IO_URINGs
#if defined(__GNUC__)
TEST_CASE("coro_file pread and pwrite basic test") {
std::string filename = "test.tmp";
create_files({filename}, 190);
Expand Down Expand Up @@ -126,6 +127,7 @@ TEST_CASE("coro_file pread and pwrite basic test") {
}
}
#endif
#endif
async_simple::coro::Lazy<void> test_basic_read(std::string filename) {
coro_io::coro_file file{};
co_await file.async_open(filename.data(), coro_io::flags::read_only);
Expand Down

0 comments on commit c2c9af0

Please sign in to comment.