-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Implementation of Path::self() #4319
Conversation
74232e3
to
60d50e8
Compare
@aleks-f , it is very unlikely that the functions to get current program name would fail, however: shall an exception be thrown in that case? |
|
||
assertTrue(!self.empty()); | ||
Path p(self); | ||
|
||
assertTrue(p.isAbsolute()); | ||
assertTrue(p.isFile()); | ||
assertTrue(self.find("testrunner") != std::string::npos); | ||
|
||
#else | ||
std::cout "Path::self() not implemented for this platform." |
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.
missing <<
yes, throw something appropriate |
…on-implemented platform.
2e93c1a
to
f6bc0ab
Compare
This PR contains content of PR #3758 by @JackyWoo with minor additional changes.
Resolves #2282.