Skip to content
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

Update z_api_alignment_test for compatiblity with zenoh-c build #296

Closed

Conversation

sashacmc
Copy link
Member

No description provided.

@@ -215,9 +221,9 @@ int main(int argc, char **argv) {
assert(hellos >= 1);

uint32_t _scouting_timeout = strtoul(SCOUTING_TIMEOUT, NULL, 10);
z_sleep_ms(_scouting_timeout);
sleep(_scouting_timeout / 1000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Zenoh-Pico/Zenoh-C we should better use z_sleep_* and avoid using platform-specific syscalls.
However, those functions are still missing in Zenoh-C (see eclipse-zenoh/zenoh-c#183).
Nevertheless, they are present in Zenoh-Pico, so better keep them.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But as far as I understand, the idea is for the files to be identical in both repos, do you think adding a #define here would be reasonable?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say that the additional functions shall be added in zenoh-c, as referred by @Mallets.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sure, but until we have no them in zenohc, api alignment test on them has no sense.

@@ -26,7 +26,11 @@
#include <unistd.h>
#endif

#ifdef ZENOH_PICO
#include "zenoh-pico.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are also failing because the ZENOH_PICO checked before its definition in zenoh-pico.h include

@sashacmc
Copy link
Member Author

Close because seems currently on zenoh-c side this test require a lot of rework.

@sashacmc sashacmc closed this Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants