[libc-commits] [libc] ccbf908 - [libc] Fix GPU test build error (#92235)
via libc-commits
libc-commits at lists.llvm.org
Wed May 15 05:06:45 PDT 2024
Author: Jan Patrick Lehr
Date: 2024-05-15T07:06:40-05:00
New Revision: ccbf908b0836d8e3945f9331fd3679cbc6be0be1
URL: https://github.com/llvm/llvm-project/commit/ccbf908b0836d8e3945f9331fd3679cbc6be0be1
DIFF: https://github.com/llvm/llvm-project/commit/ccbf908b0836d8e3945f9331fd3679cbc6be0be1.diff
LOG: [libc] Fix GPU test build error (#92235)
This fixes a build error on the AMDGPU buildbot introduced in PR
https://github.com/llvm/llvm-project/pull/92172
Added:
Modified:
libc/src/__support/StringUtil/tables/stdc_errors.h
libc/test/src/string/strerror_test.cpp
Removed:
################################################################################
diff --git a/libc/src/__support/StringUtil/tables/stdc_errors.h b/libc/src/__support/StringUtil/tables/stdc_errors.h
index a9c1527834550..6873d6bd51074 100644
--- a/libc/src/__support/StringUtil/tables/stdc_errors.h
+++ b/libc/src/__support/StringUtil/tables/stdc_errors.h
@@ -15,11 +15,10 @@
namespace LIBC_NAMESPACE {
-LIBC_INLINE_VAR constexpr const MsgTable<4> STDC_ERRORS = {
+LIBC_INLINE_VAR constexpr const MsgTable<3> STDC_ERRORS = {
MsgMapping(0, "Success"),
MsgMapping(EDOM, "Numerical argument out of domain"),
MsgMapping(ERANGE, "Numerical result out of range"),
- MsgMapping(EILSEQ, "Invalid or incomplete multibyte or wide character"),
};
} // namespace LIBC_NAMESPACE
diff --git a/libc/test/src/string/strerror_test.cpp b/libc/test/src/string/strerror_test.cpp
index ec9827b75cfc8..2d6c230573a4b 100644
--- a/libc/test/src/string/strerror_test.cpp
+++ b/libc/test/src/string/strerror_test.cpp
@@ -97,7 +97,7 @@ TEST(LlvmLibcStrErrorTest, KnownErrors) {
".lib section in a.out corrupted",
"Attempting to link in too many shared libraries",
"Cannot exec a shared library directly",
- "Invalid or incomplete multibyte or wide character",
+ "Unknown Error 84", // Unknown
"Interrupted system call should be restarted",
"Streams pipe error",
"Too many users",
More information about the libc-commits
mailing list