-
Notifications
You must be signed in to change notification settings - Fork 18
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
time: add utimes() and futimes() test #94
base: master
Are you sure you want to change the base?
Conversation
e2bfa64
to
5a69216
Compare
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.
Nice to have tests with new functionality!
Maybe we can make it a test grup in libc
(faster testing, no reboots between the tests) as there are already tests needing filesystem).
To be fair we should test all filesystems (so parameterize FILENAME
, but this is also a TODO for resolve_path / symlink tests).
12e863a
to
444659e
Compare
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.
@ziemleszcz please let me know whether you can look through the mentioned suggestions and merge the PR.
1384fcc
to
b2f3ddf
Compare
b2f3ddf
to
589778a
Compare
@damianloew I followed the documentation below: futimes: https://man7.org/linux/man-pages/man3/futimes.3.html |
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.
LGTM but in my opinion I would stay with merge to someone else review also.
589778a
to
681a335
Compare
libc/time/utimes.c
Outdated
int64_t adiff_nsec, mdiff_nsec; | ||
#endif | ||
|
||
if (test != TEST_SET_PAST) { |
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 see that you have added new cases - I think that this approach with one common function is a good solution - we can add a switch case
here to not duplicate code from one
and high_value
cases.
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.
Due to this, function was get a bit bloated, so I split it into three smaller helper functions
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.
About the commit message: it should be rather libc: improve utimes/lutimes/futimes tests
JIRA: DTR-276
3d13288
to
2bf219c
Compare
JIRA CI-342
2bf219c
to
775cec1
Compare
JIRA: DTR-276
Description
Motivation and Context
Types of changes
How Has This Been Tested?
Checklist:
Special treatment