-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Initial support for GNU/Hurd #2088
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -218,13 +218,14 @@ TEST(TailCallsModifiesTest, WithPerror) { | |
| Send(AllOf( | ||
| TextMessage(AnyOf(Eq("hello world: Bad file number [9]"), | ||
| Eq("hello world: Bad file descriptor [9]"), | ||
| Eq("hello world: Bad file descriptor [8]"))), | ||
| Eq("hello world: Bad file descriptor [8]"), | ||
| Eq("hello world: Bad file descriptor [1073741833]"))), | ||
| ENCODED_MESSAGE(HasValues(ElementsAre( | ||
| ValueWithLiteral(Eq("hello world")), ValueWithLiteral(Eq(": ")), | ||
| AnyOf(ValueWithStr(Eq("Bad file number")), | ||
| ValueWithStr(Eq("Bad file descriptor"))), | ||
| ValueWithLiteral(Eq(" [")), | ||
| AnyOf(ValueWithStr(Eq("8")), ValueWithStr(Eq("9"))), | ||
| AnyOf(ValueWithStr(Eq("8")), ValueWithStr(Eq("9")), ValueWithStr(Eq("1073741833"))), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels a little magical, where does this number come from?? Do we need tests to pass on Hurd? We don't run these in CI anyway and they're likely to backslide, so I'd be tempted to say we should revert all these test changes
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It's simply the decimal value of
In the Hurd implementation of GNU libc, the POSIX errnos start at 0x40000001 (the first). This is because there are different ranges of error values, and the POSIX values are one of those ranges (in addition to e.g. the Mach errors, IPC errors, etc). See also the GNU libc Hurd sources: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/mach/hurd/bits/errno.h;h=3b54f5855e21091123ab0669402550968f0746cf;hb=d70dd7d72273ac1aa53b435156de3f50f0c5a868#l37
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea my larger point is: is there any significant value to submitting fixes to get tests working on Hurd? I get that it was useful to produce this PR, but you only need the prod code to work right? The test changes seem particularly confusing without context, and like they (marginally) weaken the tests in the platforms we do support. The non-test changes all look fine to me |
||
| ValueWithLiteral(Eq("]")))))))); | ||
|
|
||
| test_sink.StartCapturingLogs(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.