Skip to content

Instantly share code, notes, and snippets.

@nzlz
Created January 15, 2019 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nzlz/db5ca0aae86f3b06af4573599b207b0b to your computer and use it in GitHub Desktop.
Save nzlz/db5ca0aae86f3b06af4573599b207b0b to your computer and use it in GitHub Desktop.
[ 91%] Building CXX object test/CMakeFiles/test_gazebo_ros_factory.dir/test_gazebo_ros_factory.cpp.o
In file included from /opt/ros/crystal/src/gtest_vendor/include/gtest/internal/gtest-internal.h:39:0,
from /opt/ros/crystal/src/gtest_vendor/include/gtest/gtest.h:58,
from /usr/include/gazebo-9/gazebo/test/ServerFixture.hh:31,
from /home/nestor/gz_ws_ros2/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:15:
/home/nestor/gz_ws_ros2/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp: In member function ‘virtual void GazeboRosFactoryTest_SpawnDelete_Test::TestBody()’:
/opt/ros/crystal/src/gtest_vendor/include/gtest/internal/gtest-port.h:856:40: error: expected ‘;’ before ‘switch’
# define GTEST_AMBIGUOUS_ELSE_BLOCKER_ switch (0) case 0: default: // NOLINT
^
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:73:3: note: in expansion of macro ‘GTEST_AMBIGUOUS_ELSE_BLOCKER_’
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:144:3: note: in expansion of macro ‘GTEST_ASSERT_’
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
^~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:159:3: note: in expansion of macro ‘GTEST_PRED_FORMAT2_’
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
^~~~~~~~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest.h:1924:3: note: in expansion of macro ‘EXPECT_PRED_FORMAT2’
EXPECT_PRED_FORMAT2(::testing::internal:: \
^~~~~~~~~~~~~~~~~~~
/home/nestor/gz_ws_ros2/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:133:5: note: in expansion of macro ‘EXPECT_EQ’
EXPECT_EQ(response3->model_names[1],"sdf_box1")
^
In file included from /opt/ros/crystal/src/gtest_vendor/include/gtest/gtest.h:357:0,
from /usr/include/gazebo-9/gazebo/test/ServerFixture.hh:31,
from /home/nestor/gz_ws_ros2/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:15:
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:76:3: error: ‘else’ without a previous ‘if’
else \
^
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:144:3: note: in expansion of macro ‘GTEST_ASSERT_’
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
^~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:159:3: note: in expansion of macro ‘GTEST_PRED_FORMAT2_’
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
^~~~~~~~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest.h:1924:3: note: in expansion of macro ‘EXPECT_PRED_FORMAT2’
EXPECT_PRED_FORMAT2(::testing::internal:: \
^~~~~~~~~~~~~~~~~~~
/home/nestor/gz_ws_ros2/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:133:5: note: in expansion of macro ‘EXPECT_EQ’
EXPECT_EQ(response3->model_names[1],"sdf_box1")
^
In file included from /opt/ros/crystal/src/gtest_vendor/include/gtest/gtest.h:58:0,
from /usr/include/gazebo-9/gazebo/test/ServerFixture.hh:31,
from /home/nestor/gz_ws_ros2/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:15:
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:77:16: error: ‘gtest_ar’ was not declared in this scope
on_failure(gtest_ar.failure_message())
^
/opt/ros/crystal/src/gtest_vendor/include/gtest/internal/gtest-internal.h:1151:62: note: in definition of macro ‘GTEST_MESSAGE_AT_’
::testing::internal::AssertHelper(result_type, file, line, message) \
^~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/internal/gtest-internal.h:1161:3: note: in expansion of macro ‘GTEST_MESSAGE_’
GTEST_MESSAGE_(message, ::testing::TestPartResult::kNonFatalFailure)
^~~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:77:5: note: in expansion of macro ‘GTEST_NONFATAL_FAILURE_’
on_failure(gtest_ar.failure_message())
^~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:144:3: note: in expansion of macro ‘GTEST_ASSERT_’
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
^~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:159:3: note: in expansion of macro ‘GTEST_PRED_FORMAT2_’
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
^~~~~~~~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest.h:1924:3: note: in expansion of macro ‘EXPECT_PRED_FORMAT2’
EXPECT_PRED_FORMAT2(::testing::internal:: \
^~~~~~~~~~~~~~~~~~~
/home/nestor/gz_ws_ros2/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:133:5: note: in expansion of macro ‘EXPECT_EQ’
EXPECT_EQ(response3->model_names[1],"sdf_box1")
^
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:77:16: note: suggested alternative: ‘strstr’
on_failure(gtest_ar.failure_message())
^
/opt/ros/crystal/src/gtest_vendor/include/gtest/internal/gtest-internal.h:1151:62: note: in definition of macro ‘GTEST_MESSAGE_AT_’
::testing::internal::AssertHelper(result_type, file, line, message) \
^~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/internal/gtest-internal.h:1161:3: note: in expansion of macro ‘GTEST_MESSAGE_’
GTEST_MESSAGE_(message, ::testing::TestPartResult::kNonFatalFailure)
^~~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:77:5: note: in expansion of macro ‘GTEST_NONFATAL_FAILURE_’
on_failure(gtest_ar.failure_message())
^~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:144:3: note: in expansion of macro ‘GTEST_ASSERT_’
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
^~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:159:3: note: in expansion of macro ‘GTEST_PRED_FORMAT2_’
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
^~~~~~~~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest.h:1924:3: note: in expansion of macro ‘EXPECT_PRED_FORMAT2’
EXPECT_PRED_FORMAT2(::testing::internal:: \
^~~~~~~~~~~~~~~~~~~
/home/nestor/gz_ws_ros2/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:133:5: note: in expansion of macro ‘EXPECT_EQ’
EXPECT_EQ(response3->model_names[1],"sdf_box1")
^
In file included from /opt/ros/crystal/src/gtest_vendor/include/gtest/gtest.h:357:0,
from /usr/include/gazebo-9/gazebo/test/ServerFixture.hh:31,
from /home/nestor/gz_ws_ros2/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:15:
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:76:3: error: ‘else’ without a previous ‘if’
else \
^
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:144:3: note: in expansion of macro ‘GTEST_ASSERT_’
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
^~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest_pred_impl.h:159:3: note: in expansion of macro ‘GTEST_PRED_FORMAT2_’
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
^~~~~~~~~~~~~~~~~~~
/opt/ros/crystal/src/gtest_vendor/include/gtest/gtest.h:1924:3: note: in expansion of macro ‘EXPECT_PRED_FORMAT2’
EXPECT_PRED_FORMAT2(::testing::internal:: \
^~~~~~~~~~~~~~~~~~~
/home/nestor/gz_ws_ros2/src/gazebo_ros_pkgs/gazebo_ros/test/test_gazebo_ros_factory.cpp:134:5: note: in expansion of macro ‘EXPECT_EQ’
EXPECT_EQ(response3->model_names[2],"sdf_box2")
^
test/CMakeFiles/test_gazebo_ros_factory.dir/build.make:62: recipe for target 'test/CMakeFiles/test_gazebo_ros_factory.dir/test_gazebo_ros_factory.cpp.o' failed
make[2]: *** [test/CMakeFiles/test_gazebo_ros_factory.dir/test_gazebo_ros_factory.cpp.o] Error 1
CMakeFiles/Makefile2:1533: recipe for target 'test/CMakeFiles/test_gazebo_ros_factory.dir/all' failed
make[1]: *** [test/CMakeFiles/test_gazebo_ros_factory.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment