dbus-sensors icon indicating copy to clipboard operation
dbus-sensors copied to clipboard

unit-test is not really enabled

Open leiyu-bytedance opened this issue 3 years ago • 0 comments

The tests/meson.build has below:

  have_boost_dbus = meson.get_compiler('cpp').has_header('dbus/connection.hpp')
  if have_boost_dbus
  test(...)
  endif

There is no 'dbus/connection.hpp' anyway, so the tests are not really enabled at all.

And the content in the test(...) is broken as well, e.g. the gtest dependency is incorrect, it shall be gtest_dep. After fixing all the above, the unit test itself gets link failure because it does not include the expected cpp files.

leiyu-bytedance avatar Nov 16 '21 06:11 leiyu-bytedance