-
Notifications
You must be signed in to change notification settings - Fork 373
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
libc-misc test freebsd fixes attempt #3177
Conversation
9867993
to
15bf480
Compare
fd01ea5
to
e47c669
Compare
ac7b2f5
to
bf66c21
Compare
@rustbot review |
let result = this.ftruncate64(fd, length)?; | ||
this.write_scalar(result, dest)?; | ||
} | ||
"ftruncate" => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're adding this for all targets now we should probably have a test for it... libc-fs.rs
sound like the right file.
We've historically been pretty bad with libc tests for our FS APIs though. And test_posix_mkstemp
should probably be in libc-fs.rs as well. So if you prefer we can open an issue to track fixing this in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's still no test for this function, is there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not add purposely, can be done separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I said it should either be done here or have an issue to track it. :)
I created an issue: #3179
1df561d
to
553db9a
Compare
@rustbot review |
@@ -1,4 +1,5 @@ | |||
//@ignore-target-windows: no libc on Windows | |||
//@ignore-target-freebsd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//@ignore-target-freebsd | |
//@ignore-target-freebsd: FIXME needs foreign function `stat@FBSD_1.0` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note could be fixed in "all fs" next PR eventually.
cf2a07f
to
ea353db
Compare
ea353db
to
2472e70
Compare
Looks good, thanks! |
☀️ Test successful - checks-actions |
No description provided.