-
Notifications
You must be signed in to change notification settings - Fork 421
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
Add Path.absPath, file.absPath and associated tests #12394
Add Path.absPath, file.absPath and associated tests #12394
Conversation
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 think the test cases you have are reasonable. The only thing that I can think of right now is a path involving a directory you don't have permissions on (like "foo/hiddenPath/../bar.txt" or something), and only because I was trying to think of weird cases. That'll be tricky to write - you'll want to take a look at the chmod tests for an example of how to make it and clean it up.
test/library/standard/Path/dlongnecke/fileAbsPath/fileAbsPath.chpl
Outdated
Show resolved
Hide resolved
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.
These changes look good! I'm going to run a version myself and will give you the all clear when that passes
One thing: it'd be good to include the testing you did in the PR/merge message |
Add recent annotations and backfill missing ones since last release Improvements: - minor unordered operation improvements (chapel-lang#12089) - massive single and multi-locale scan improvements (chapel-lang#12469, chapel-lang#12481) - string-ish improvements from --no-checks disabling range checks (chapel-lang#11780) - remote-record-read comm count regression and fix (chapel-lang#11629, chapel-lang#12439) - tuple-to-complex cast regression fix (chapel-lang#12429) - sparse bulk-add improvement from using radix sort (chapel-lang#12452) - memory leak regressions, fixes, and improvements (chapel-lang#12225, chapel-lang#12394, chapel-lang#12421, chapel-lang#12512, chapel-lang#12500, chapel-lang#12516, chapel-lang#12527, chapel-lang#12531, chapel-lang#12551, chapel-lang#12554, chapel-lang#12552) - minor regression for serial reductions from ExternArr (chapel-lang#11893) - mark notable reboots of chapcs machines
Add perf annotations for 2019-03-14 Add recent annotations and backfill missing ones since last release Improvements: - minor improvements for unordered operations (#12089) - massive single and multi-locale scan improvements (#12469, #12481) - string-ish improvements from --no-checks disabling range checks (#11780) - regression and fix for remote-record-read-copy comm count (#11629, #12439) - regression fix for tuple-to-complex cast (#12429) - sparse bulk-add improvement from using radix sort (#12452) - regressions, fixes, and improvements for leaks (#12225, #12394, #12421, #12512, #12500, #12516, #12527, #12531, #12551, #12554, #12552) Regressions: - minor regression for serial reductions from ExternArr (#11893) Misc: - mark notable reboots of chapcs machines (e.g. llvm, default)
Implement a working version of
Path.absPath()
andfile.absPath()
(both in the Path module). The Python 3.7.2 POSIX implementation ofos.path.abspath()
was referenced to ensure compatibility.Python's
file.name
and Chapel'sfile.path
seem to have different semantics (the former is the path used to open, the latter appears to be relative).I'd appreciate some additional tests if you can think of them, particularly for
file.absPath()
.Test coverage:
Thanks @lydia-duncan for the review!
Resolves #6005.