From c2c9af088544275e34cbce865a103d9fba3e8e2c Mon Sep 17 00:00:00 2001 From: qicosmos Date: Fri, 1 Dec 2023 11:59:21 +0800 Subject: [PATCH] filter --- src/coro_io/tests/test_corofile.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/coro_io/tests/test_corofile.cpp b/src/coro_io/tests/test_corofile.cpp index 8bfdec799..19376f9cd 100644 --- a/src/coro_io/tests/test_corofile.cpp +++ b/src/coro_io/tests/test_corofile.cpp @@ -69,7 +69,8 @@ void create_files(const std::vector& 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); @@ -126,6 +127,7 @@ TEST_CASE("coro_file pread and pwrite basic test") { } } #endif +#endif async_simple::coro::Lazy test_basic_read(std::string filename) { coro_io::coro_file file{}; co_await file.async_open(filename.data(), coro_io::flags::read_only);