Skip to content

[libc] Fix GPU test build error #92235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions libc/src/__support/StringUtil/tables/stdc_errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/string/strerror_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading