1From bc5f2e5af90854c8f84b5829493dd01facf9af84 Mon Sep 17 00:00:00 2001 2From: Peter Marko <peter.marko@siemens.com> 3Date: Mon, 7 Apr 2025 16:29:32 +0200 4Subject: [PATCH] Fix tests with musl 5 6Upstream-Status: Submitted [https://github.com/rikyoz/bit7z/pull/292] 7Signed-off-by: Peter Marko <peter.marko@siemens.com> 8--- 9 tests/src/test_bitexception.cpp | 8 ++++++++ 10 1 file changed, 8 insertions(+) 11 12diff --git a/tests/src/test_bitexception.cpp b/tests/src/test_bitexception.cpp 13index 7161fcc5..d85d430d 100644 14--- a/tests/src/test_bitexception.cpp 15+++ b/tests/src/test_bitexception.cpp 16@@ -49,6 +49,8 @@ constexpr PortableErrorTest hresult_tests[] = { // NOLINT(*-avoid-c-arrays) 17 { HRESULT_WIN32_TEST( ERROR_OPEN_FAILED ), 18 #ifdef _WIN32 19 "The system cannot open the device or file specified.", 20+#elif defined( __linux__ ) && !defined ( __GLIBC__ ) 21+ "I/O error", 22 #else 23 "Input/output error", 24 #endif 25@@ -67,6 +69,8 @@ constexpr PortableErrorTest hresult_tests[] = { // NOLINT(*-avoid-c-arrays) 26 { HRESULT_WIN32_TEST( ERROR_SEEK ), 27 #ifdef _WIN32 28 "The drive cannot locate a specific area or track on the disk.", 29+#elif defined( __linux__ ) && !defined ( __GLIBC__ ) 30+ "I/O error", 31 #else 32 "Input/output error", 33 #endif 34@@ -74,6 +78,8 @@ constexpr PortableErrorTest hresult_tests[] = { // NOLINT(*-avoid-c-arrays) 35 { HRESULT_WIN32_TEST( ERROR_READ_FAULT ), 36 #ifdef _WIN32 37 "The system cannot read from the specified device.", 38+#elif defined( __linux__ ) && !defined ( __GLIBC__ ) 39+ "I/O error", 40 #else 41 "Input/output error", 42 #endif 43@@ -81,6 +87,8 @@ constexpr PortableErrorTest hresult_tests[] = { // NOLINT(*-avoid-c-arrays) 44 { HRESULT_WIN32_TEST( ERROR_WRITE_FAULT ), 45 #ifdef _WIN32 46 "The system cannot write to the specified device.", 47+#elif defined( __linux__ ) && !defined ( __GLIBC__ ) 48+ "I/O error", 49 #else 50 "Input/output error", 51 #endif 52