-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from jean-roland/fix_tests
Keep tests assert in release build
- Loading branch information
Showing
7 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,14 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
|
||
#include <assert.h> | ||
#include <stddef.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
#undef NDEBUG | ||
#include <assert.h> | ||
|
||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) | ||
#include <windows.h> | ||
#define sleep(x) Sleep(x * 1000) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
|
||
#include <assert.h> | ||
#include <stddef.h> | ||
#include <stdint.h> | ||
#include <stdio.h> | ||
|
@@ -21,6 +20,9 @@ | |
#include "zenoh-pico/api/types.h" | ||
#include "zenoh-pico/collections/string.h" | ||
|
||
#undef NDEBUG | ||
#include <assert.h> | ||
|
||
#define MSG 1000 | ||
#define MSG_LEN 1024 | ||
#define QRY 100 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
#include <assert.h> | ||
#include <stddef.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
@@ -22,6 +21,9 @@ | |
#include "zenoh-pico/system/platform.h" | ||
#include "zenoh-pico/transport/transport.h" | ||
|
||
#undef NDEBUG | ||
#include <assert.h> | ||
|
||
void entry_list_test(void) { | ||
_z_transport_peer_entry_list_t *root = _z_transport_peer_entry_list_new(); | ||
for (int i = 0; i < 10; i++) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
#include <assert.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
@@ -22,6 +21,9 @@ | |
#include "zenoh-pico/link/endpoint.h" | ||
#include "zenoh-pico/utils/result.h" | ||
|
||
#undef NDEBUG | ||
#include <assert.h> | ||
|
||
int main(void) { | ||
char *s = (char *)malloc(64); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
#include <assert.h> | ||
|
||
#include <stddef.h> | ||
#include <stdint.h> | ||
#include <stdio.h> | ||
|
@@ -20,6 +20,9 @@ | |
|
||
#include "zenoh-pico/protocol/iobuf.h" | ||
|
||
#undef NDEBUG | ||
#include <assert.h> | ||
|
||
#define RUNS 1000 | ||
|
||
/*=============================*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
#include <assert.h> | ||
#include <stddef.h> | ||
#include <stdint.h> | ||
#include <stdio.h> | ||
|
@@ -22,6 +21,9 @@ | |
#include "zenoh-pico/collections/bytes.h" | ||
#include "zenoh-pico/protocol/core.h" | ||
|
||
#undef NDEBUG | ||
#include <assert.h> | ||
|
||
#define MSG 10 | ||
#define MSG_LEN 1024 | ||
#define QRY 10 | ||
|