-
Notifications
You must be signed in to change notification settings - Fork 108
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
Replace old GENERAL_OBSERVATION error message #2369
Replace old GENERAL_OBSERVATION error message #2369
Conversation
test ert please |
0458c45
to
90a4d71
Compare
Now that the new tmpdir is merged, should we try using it here? I've with help from @eivindjahren made use of it here: #2425 |
test ert please
Working on it... 😄 |
90a4d71
to
a057e5c
Compare
|
||
/* | ||
* Set up workarea, create and write start of file. | ||
* Returns pointer to workares since it needs to be kept alive |
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.
Type in "Returns pointer to workares since it needs to be kept alive", should be workarea
* for the actual test | ||
*/ | ||
void setup() { | ||
util_make_path("obs_path"); |
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.
Use filesystem::create_directory instead?
a057e5c
to
e5af8b1
Compare
test ert please |
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 🚀
test ert please |
3 similar comments
test ert please |
test ert please |
test ert please |
Replaced to dynamically report keywords for which files cannot be located, topped off with an extensive unit-test. The method conf_instance_has_path_error() is neither used not defined anywhere so declaration is removed from conf.hpp
e5af8b1
to
a5794d6
Compare
Issue
Resolves #938. As a bonus, the method
conf_instance_has_path_error()
is neither used not defined anywhere so declaration is removed fromconf.hpp
Approach
Replaced static text to dynamically report keywords for which files cannot be located, topped off with an extensive unit-test. A static (internal) method is used in
conf.cpp
, utilizingstd::set
to accumulate errors while avoiding duplicates. Keywords are separated by newline and returned aschar *
since this method is exposed to C.