This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new a2009d782b Change libswoc test for undefined errno to a much higher
number (#13531)
a2009d782b is described below
commit a2009d782b3417c21d8b0dbcb3e841f475865bf7
Author: Jered Floyd <[email protected]>
AuthorDate: Tue Aug 11 12:08:43 2026 -0400
Change libswoc test for undefined errno to a much higher number (#13531)
libswoc tests include one that expects errno 134 to be unknown;
this is no longer the case in Linux 7.2. This patch increases the
errno to one that should be unknown for the forseeable future.
---
lib/swoc/unit_tests/test_bw_format.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/swoc/unit_tests/test_bw_format.cc
b/lib/swoc/unit_tests/test_bw_format.cc
index caf69a0499..0f5f4a8b07 100644
--- a/lib/swoc/unit_tests/test_bw_format.cc
+++ b/lib/swoc/unit_tests/test_bw_format.cc
@@ -525,7 +525,7 @@ TEST_CASE("bwstring std formats", "[libswoc][bwprint]") {
w.print("{}", swoc::bwf::Errno(13));
REQUIRE(w.view() == "EACCES: Permission denied [13]"sv);
- w.clear().print("{}", swoc::bwf::Errno(134));
+ w.clear().print("{}", swoc::bwf::Errno(192));
REQUIRE(w.view().substr(0, 22) == "Unknown: Unknown error"sv);
w.clear().print("{:s}", swoc::bwf::Errno(13));
REQUIRE(w.view() == "EACCES: Permission denied"sv);