zenoh-cpp
zenoh-cpp copied to clipboard
[Bug] keyexpr_zenohpico test failed
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
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.