zenoh-cpp icon indicating copy to clipboard operation
zenoh-cpp copied to clipboard

[Bug] keyexpr_zenohpico test failed

Open sashacmc opened this issue 2 years ago • 1 comments

Describe the bug

The test failed with the message

keyexpr_zenohpico: /home/sashacmc/src/zenoh-cpp/tests/universal/keyexpr.cxx:406: void includes_declared(zenohpico::Session&): Assertion `!keyexpr_includes("FOO/*", "FOO/BAR", err)' failed.

To reproduce

mkdir build && cd build
cmake ..
cmake --build .
cmake --build . --target tests
ctest

System info

  • Platform: Ubuntu 22.04.3 LTS
  • Commit: 968d570225e2ecc795294cbf489b36bdec78516d

sashacmc avatar Nov 29 '23 17:11 sashacmc

Initial problem fixed in draft pr above. But there are multiple problems:

  • test doesn't fail if no connection to zenoh router, so it's just skipped. That's why this problem doesn't appear in CI
  • another error appears after fixing first one:
keyexpr_zenohpico: /home/milyin/ZS2/zenoh-cpp/include/zenohcxx/api.hxx:504: zenohpico::KeyExprView::KeyExprView(const char*, zenohpico::KeyExprUnchecked): Assertion `keyexpr_is_canon(name)' failed.

milyin avatar Dec 01 '23 15:12 milyin