Skip to content

Commit fb59259

Browse files
committed
disalbe awaitable http tests for GCC 13
1 parent 07ff878 commit fb59259

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Clean async/await syntax using `co_await` for sequential or parallel HTTP operations
1111
- Uses caller's executor context (no service thread management required)
1212
- Supports both HTTP and HTTPS protocols
13+
- **Note**: GCC 13 has a known compiler bug with coroutine lambdas. Awaitable tests are disabled on GCC 13. Use GCC 14+ or Clang for full awaitable support.
1314

1415
# [1.1.2] - 2025-11-13
1516
- Remove unnecessary slick_logger from slick_net link dependencies

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ A high-performance C++ HTTP/WebSocket client library built on Boost.Beast with f
2525
- **Boost** (1.75+): beast, asio, context components
2626
- **OpenSSL**: For SSL/TLS support
2727
- **C++20 Compiler**: Required for coroutine support
28+
- GCC 14+ (GCC 13 has a known bug with coroutine lambdas in test code)
29+
- Clang 14+
30+
- MSVC 2022+
2831

2932
## Installation
3033

tests/http_tests.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,9 @@ TEST_F(HttpTest, HttpStream_StatusCheck) {
697697
}
698698

699699
// ======================== Awaitable GET Tests ========================
700+
// Note: GCC 13 has an internal compiler error with coroutine lambdas
701+
// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103868
702+
#if !defined(__GNUC__) || __GNUC__ >= 14 || defined(__clang__)
700703

701704
TEST_F(HttpTest, AwaitableGet_BasicRequest) {
702705
asio::io_context ioc;
@@ -1255,4 +1258,6 @@ TEST_F(HttpTest, AwaitableMixed_AllHttpMethods) {
12551258
EXPECT_EQ(operations_completed.load(), 5);
12561259
}
12571260

1261+
#endif // GCC version check for awaitable tests
1262+
12581263
} // namespace slick::net

0 commit comments

Comments
 (0)