-
Notifications
You must be signed in to change notification settings - Fork 41
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
ign -> gz : Remove redundant namespace references #414
Conversation
54de82a
to
e103a2b
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.
Compilation is failing, we need to make sure the namespace is used where we remove it:
create_and_switch_to_temp_dir(std::__cxx11::string&)':
/github/workspace/src/Filesystem_TEST.cc:38:8: error: 'env' was not declared in this scope
if (!env("TMPDIR", tmppath))
ac455da
to
37070a9
Compare
src/Console_TEST.cc
Outdated
@@ -40,12 +40,12 @@ class Console_TEST : public ::testing::Test { | |||
/// \brief Clear out all the directories we produced during this test. | |||
public: virtual ~Console_TEST() | |||
{ | |||
EXPECT_TRUE(ignition::common::unsetenv(IGN_HOMEDIR)); | |||
EXPECT_TRUE(unsetenv(IGN_HOMEDIR)); |
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.
This is one of the places where removing the namespace is actually changing what function is called. I believe the tests are failing because this is calling this instead of our cross-platform function.
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.
Hmm.. Let me add the following excludes then:
env
unsetenv
joinPaths
removeAll
uuid
isDirectory
This will result in just ignition::
being removed, where applicable
Signed-off-by: methylDragon <methylDragon@gmail.com>
37070a9
to
6844807
Compare
Codecov Report
@@ Coverage Diff @@
## ign-common3 #414 +/- ##
============================================
Coverage 78.52% 78.52%
============================================
Files 72 72
Lines 9244 9244
============================================
Hits 7259 7259
Misses 1985 1985
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Tests now pass, but with a deprecation warning on homebrew (that I think is unrelated?) |
It looks like @mjcarroll is on it |
Part of: gazebo-tooling/release-tools#784